Submission #70542898
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
/////////////////// メイン ///////////////////
int main () {
//////////////////// 入力 ////////////////////
// 整数型変数を2つ用意して、入力を受け取る
int n, m;
cin >> n >> m;
//////////////// 出力変数定義 ////////////////
// 直接出力するので、なし
//////////////////// 処理 ////////////////////
// 出力するだけなので、なし
//////////////////// 出力 ////////////////////
// forループで、n回出力する
for (int i=0; i<n; i++) {
// m回目までは、"OK"と出力
if (i<m) cout << "OK" << endl;
// それ以降は、"Too Many Requests"と出力
else cout << "Too Many Requests" << endl;
}
//////////////////// 終了 ////////////////////
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - Too Many Requests |
| User | wightou |
| Language | C++ 23 (gcc 12.2) |
| Score | 100 |
| Code Size | 859 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3672 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| 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 |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| example_00.txt | AC | 1 ms | 3548 KiB |
| example_01.txt | AC | 1 ms | 3544 KiB |
| hand_00.txt | AC | 1 ms | 3448 KiB |
| hand_01.txt | AC | 1 ms | 3536 KiB |
| hand_02.txt | AC | 1 ms | 3524 KiB |
| hand_03.txt | AC | 1 ms | 3612 KiB |
| hand_04.txt | AC | 1 ms | 3536 KiB |
| hand_05.txt | AC | 1 ms | 3540 KiB |
| random_00.txt | AC | 1 ms | 3380 KiB |
| random_01.txt | AC | 1 ms | 3524 KiB |
| random_02.txt | AC | 1 ms | 3416 KiB |
| random_03.txt | AC | 1 ms | 3456 KiB |
| random_04.txt | AC | 1 ms | 3488 KiB |
| random_05.txt | AC | 1 ms | 3484 KiB |
| random_06.txt | AC | 1 ms | 3672 KiB |