結果

問題 No.304 鍵(1)
ユーザー face4face4
提出日時 2018-04-24 20:04:08
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 432 ms
コンパイル使用メモリ 65,792 KB
実行使用メモリ 23,784 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-24 01:44:48
合計ジャッジ時間 1,260 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
23,376 KB
testcase_01 AC 26 ms
23,784 KB
testcase_02 AC 59 ms
23,376 KB
testcase_03 AC 24 ms
23,664 KB
testcase_04 AC 42 ms
23,544 KB
testcase_05 AC 24 ms
23,640 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main(){
    int n = 0;
    while(true){
        string s;
        if(n < 100) s.append("0");
        if(n < 10)  s.append("0");
        s.append(to_string(n));
        cout << s << endl << flush;
        getline(cin, s);
        if(s == "unlocked") break;
        n++;
    }
    return 0;
}
0