結果

問題 No.304 鍵(1)
ユーザー tuharu
提出日時 2024-06-23 13:00:26
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 654 bytes
コンパイル時間 1,631 ms
コンパイル使用メモリ 166,668 KB
実行使用メモリ 25,220 KB
平均クエリ数 309.17
最終ジャッジ日時 2024-06-23 13:00:29
合計ジャッジ時間 2,780 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ill = int long long;
#define rep(i, n) for (ill i = 0; i < (n); i++)
#define all(s) s.begin(), s.end()
using inp = pair<int, int>;
using vecb = vector<bool>;
using vecb2 = vector<vecb>;
int main()
{
    int ans = 0;
    while (1)
    {
        if (ans <= 9)
        {
            cout << "00" << ans << endl;
        }
        else if (ans <= 99)
        {
            cout << "0" << ans << endl;
        }
        else
        {
            cout << ans << endl;
        }
        string s;
        cin >> s;
        if (s == "unlocked")
        {
            return 0;
        }
        ans++;
    }
}
0