結果

問題 No.304 鍵(1)
ユーザー kichirb3kichirb3
提出日時 2018-03-04 12:27:32
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 400 bytes
コンパイル時間 515 ms
コンパイル使用メモリ 68,888 KB
実行使用メモリ 24,336 KB
平均クエリ数 309.17
最終ジャッジ日時 2023-09-23 15:52:37
合計ジャッジ時間 1,351 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
23,676 KB
testcase_01 AC 27 ms
23,976 KB
testcase_02 AC 57 ms
24,000 KB
testcase_03 AC 27 ms
23,652 KB
testcase_04 AC 41 ms
23,412 KB
testcase_05 AC 29 ms
24,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// No.304 鍵(1)
// https://yukicoder.me/problems/no/304a
//
#include <iostream>
#include <iomanip>
using namespace std;

int main() {
    std::cin.tie(nullptr);
    std::ios::sync_with_stdio(false);

    for (auto n = 0; n < 1000; ++n) {
        cout << setw(3) << setfill('0') << n << flush << endl;
        string res;
        cin >> res;
        if (res == "unlocked")
            break;
    }
}
0