結果
問題 | No.304 鍵(1) |
ユーザー |
![]() |
提出日時 | 2018-03-14 17:06:47 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 61 ms / 2,000 ms |
コード長 | 448 bytes |
コンパイル時間 | 802 ms |
コンパイル使用メモリ | 81,276 KB |
実行使用メモリ | 25,220 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2024-07-17 01:39:22 |
合計ジャッジ時間 | 1,848 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
#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;}