結果

問題 No.304 鍵(1)
ユーザー fumi6328fumi6328
提出日時 2018-09-14 21:54:02
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 383 bytes
コンパイル時間 500 ms
コンパイル使用メモリ 63,764 KB
実行使用メモリ 24,288 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 01:54:02
合計ジャッジ時間 1,478 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,340 KB
testcase_01 AC 30 ms
23,208 KB
testcase_02 AC 63 ms
23,304 KB
testcase_03 AC 33 ms
24,228 KB
testcase_04 AC 45 ms
23,616 KB
testcase_05 AC 29 ms
24,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
using namespace std;

int main()
{
    string ans;
    for(char i = '0'; i <= '9'; i++){
        for(char j = '0'; j <= '9'; j++){
            for(char k = '0'; k <= '9'; k++){
                cout << i << j << k << endl;
                cin >> ans;
                if(ans == "unlocked") return 0;
            }
        }
    }
}
0