結果
問題 |
No.304 鍵(1)
|
ユーザー |
|
提出日時 | 2018-03-09 07:59:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 629 bytes |
コンパイル時間 | 966 ms |
コンパイル使用メモリ | 83,000 KB |
実行使用メモリ | 25,592 KB |
平均クエリ数 | 309.17 |
最終ジャッジ日時 | 2024-07-16 15:40:06 |
合計ジャッジ時間 | 1,891 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 6 |
ソースコード
#define _USE_MATH_DEFINES #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string> #include<iostream> #include<iostream> #include<cctype> #include<cstdio> #include<vector> #include<stack> #include<queue> #include <algorithm> #include<math.h> #include<set> #include<map> #include <sstream> #include<iomanip> #include <ctype.h> using namespace std; //#include<bits/stdc++.h> 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; }