結果
問題 | No.304 鍵(1) |
ユーザー | vain0 |
提出日時 | 2015-11-27 22:57:06 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 920 bytes |
コンパイル時間 | 492 ms |
コンパイル使用メモリ | 72,796 KB |
実行使用メモリ | 24,312 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2023-09-23 22:01:55 |
合計ジャッジ時間 | 1,344 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 26 ms
23,688 KB |
testcase_01 | AC | 28 ms
23,424 KB |
testcase_02 | AC | 60 ms
24,036 KB |
testcase_03 | AC | 28 ms
23,436 KB |
testcase_04 | AC | 43 ms
23,700 KB |
testcase_05 | AC | 29 ms
24,312 KB |
ソースコード
#include <iostream> #include <cstdio> #include <string> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <set> #include <stack> #include <queue> #include <functional> #include <cmath> #ifndef ONLINE_JUDGE # include <complex> # include <random> # include <array> # include <unordered_map> # define mkt make_tuple #endif #ifdef _LOCAL # include "module/for_local.h" #else # define assert(...) ((void)0) # define ifdebug if (false) # define echo(...) ((void)0) #endif using namespace std; typedef long long ll; typedef unsigned long long ull; #define repi(_I, _B, _E) for(int _I = (_B); (_I) < (_E); ++ (_I)) #define rep(_I, _N) for(int _I = 0; (_I) < (_N); ++ (_I)) #define all(_X) (_X).begin(), (_X).end() int main() { rep(i, 1000) { printf("%03d\n", i); fflush(stdout); char msg[100] {}; scanf("%s", msg); if ( ! strcmp(msg, "unlocked") ) { break; } } return 0; }