結果

問題 No.304 鍵(1)
ユーザー kichirb3kichirb3
提出日時 2018-03-04 12:27:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 400 bytes
コンパイル時間 639 ms
コンパイル使用メモリ 70,180 KB
実行使用メモリ 25,220 KB
平均クエリ数 309.17
最終ジャッジ日時 2024-07-16 15:38:55
合計ジャッジ時間 1,467 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

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