提出 #70407644
ソースコード 拡げる
#include <bits/stdc++.h>
#ifdef LOCAL
#include <debug.hpp>
#else
#define debug(...) void(0)
#endif
template <class T, class U = T> bool chmin(T& x, U&& y) { return y < x and (x = std::forward<U>(y), true); }
template <class T, class U = T> bool chmax(T& x, U&& y) { return x < y and (x = std::forward<U>(y), true); }
template <class T> void mkuni(std::vector<T>& v) {
std::ranges::sort(v);
auto result = std::ranges::unique(v);
v.erase(result.begin(), result.end());
}
template <class T> int lwb(const std::vector<T>& v, const T& x) {
return std::distance(v.begin(), std::ranges::lower_bound(v, x));
}
using namespace std;
using ll = long long;
void solve() {
int N, M;
cin >> N >> M;
for (int i = 1; i <= N; i++) {
cout << (i <= M ? "OK" : "Too Many Requests") << "\n";
}
}
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout << fixed << setprecision(15);
solve();
return 0;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Too Many Requests |
| ユーザ | rniya |
| 言語 | C++ 23 (gcc 12.2) |
| 得点 | 100 |
| コード長 | 1001 Byte |
| 結果 | AC |
| 実行時間 | 1 ms |
| メモリ | 3600 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example_00.txt, example_01.txt |
| All | example_00.txt, example_01.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, random_00.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| example_00.txt | AC | 1 ms | 3384 KiB |
| example_01.txt | AC | 1 ms | 3520 KiB |
| hand_00.txt | AC | 1 ms | 3460 KiB |
| hand_01.txt | AC | 1 ms | 3412 KiB |
| hand_02.txt | AC | 1 ms | 3448 KiB |
| hand_03.txt | AC | 1 ms | 3380 KiB |
| hand_04.txt | AC | 1 ms | 3456 KiB |
| hand_05.txt | AC | 1 ms | 3412 KiB |
| random_00.txt | AC | 1 ms | 3380 KiB |
| random_01.txt | AC | 1 ms | 3388 KiB |
| random_02.txt | AC | 1 ms | 3600 KiB |
| random_03.txt | AC | 1 ms | 3380 KiB |
| random_04.txt | AC | 1 ms | 3396 KiB |
| random_05.txt | AC | 1 ms | 3516 KiB |
| random_06.txt | AC | 1 ms | 3440 KiB |