結果
問題 | No.304 鍵(1) |
ユーザー | tenkyu9 |
提出日時 | 2018-03-14 17:06:47 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 63 ms / 2,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 1,537 ms |
コンパイル使用メモリ | 75,908 KB |
実行使用メモリ | 23,796 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2023-09-24 01:42:49 |
合計ジャッジ時間 | 2,535 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 26 ms
23,508 KB |
testcase_01 | AC | 29 ms
23,448 KB |
testcase_02 | AC | 63 ms
23,796 KB |
testcase_03 | AC | 29 ms
23,712 KB |
testcase_04 | AC | 46 ms
23,796 KB |
testcase_05 | AC | 29 ms
23,508 KB |
ソースコード
#include<iostream> #include<string> #include<algorithm> #include<cmath> #include<iomanip> #include<cstring> #include<map> #include<vector> #include<queue> using namespace std; typedef long long int ll; int main(){ string a = "000"; while (1) { cout << a << endl; string b; cin >> b; if (b == "unlocked")break; a[2]++; if (a[2] > '9') { a[1]++; a[2] = '0'; } if (a[1] > '9') { a[0]++; a[1] = '0'; } } return 0; }