結果

問題 No.304 鍵(1)
ユーザー tuharutuharu
提出日時 2024-06-23 12:58:00
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
TLE  
実行時間 -
コード長 654 bytes
コンパイル時間 1,615 ms
コンパイル使用メモリ 166,540 KB
実行使用メモリ 40,492 KB
平均クエリ数 142.50
最終ジャッジ日時 2024-06-23 12:58:06
合計ジャッジ時間 5,863 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
25,220 KB
testcase_01 AC 29 ms
24,964 KB
testcase_02 AC 28 ms
24,580 KB
testcase_03 AC 29 ms
25,220 KB
testcase_04 AC 43 ms
24,836 KB
testcase_05 TLE -
権限があれば一括ダウンロードができます

ソースコード

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 << "9" << ans << endl;
        }
        else
        {
            cout << ans << endl;
        }
        string s;
        cin >> s;
        if (s == "unlocked")
        {
            return 0;
        }
        ans++;
    }
}
0