Submission #70406623


Source Code Expand

#include <bits/stdc++.h>
//#include <atcoder/all>
using namespace std;
//using namespace atcoder;
//using mint = modint1000000007;
//const int mod = 1000000007;
//using mint = modint998244353;
//const int mod = 998244353;
//const int INF = 1e9;
//const long long LINF = 1e18;
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define rep2(i,l,r)for(int i=(l);i<(r);++i)
#define rrep(i, n) for (int i = (n) - 1; i >= 0; --i)
#define rrep2(i,l,r)for(int i=(r) - 1;i>=(l);--i)
#define all(x) (x).begin(),(x).end()
#define allR(x) (x).rbegin(),(x).rend()
#define P pair<int,int>
template<typename A, typename B> inline bool chmax(A & a, const B & b) { if (a < b) { a = b; return true; } return false; }
template<typename A, typename B> inline bool chmin(A & a, const B & b) { if (a > b) { a = b; return true; } return false; }

int main() {
	std::ios::sync_with_stdio(false);
	std::cin.tie(nullptr);
	int n, m; cin >> n >> m;
	rep(i, n) {
		if (i < m)cout << "OK" << endl;
		else cout << "Too Many Requests" << endl;
	}
	return 0;
}

Submission Info

Submission Time
Task A - Too Many Requests
User kwm_t
Language C++ 23 (gcc 12.2)
Score 100
Code Size 1057 Byte
Status AC
Exec Time 1 ms
Memory 3568 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 15
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 3468 KiB
example_01.txt AC 1 ms 3508 KiB
hand_00.txt AC 1 ms 3400 KiB
hand_01.txt AC 1 ms 3504 KiB
hand_02.txt AC 1 ms 3484 KiB
hand_03.txt AC 1 ms 3404 KiB
hand_04.txt AC 1 ms 3568 KiB
hand_05.txt AC 1 ms 3472 KiB
random_00.txt AC 1 ms 3424 KiB
random_01.txt AC 1 ms 3424 KiB
random_02.txt AC 1 ms 3500 KiB
random_03.txt AC 1 ms 3404 KiB
random_04.txt AC 1 ms 3568 KiB
random_05.txt AC 1 ms 3568 KiB
random_06.txt AC 1 ms 3504 KiB