結果

問題 No.305 鍵(2)
ユーザー btkbtk
提出日時 2015-11-27 23:35:01
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 523 bytes
コンパイル時間 1,172 ms
コンパイル使用メモリ 144,888 KB
実行使用メモリ 24,348 KB
平均クエリ数 67.38
最終ジャッジ日時 2023-09-23 06:49:06
合計ジャッジ時間 3,154 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 28 ms
23,856 KB
testcase_02 WA -
testcase_03 AC 28 ms
23,688 KB
testcase_04 AC 27 ms
23,436 KB
testcase_05 AC 30 ms
24,084 KB
testcase_06 AC 25 ms
24,348 KB
testcase_07 WA -
testcase_08 AC 28 ms
23,544 KB
testcase_09 AC 27 ms
24,024 KB
testcase_10 AC 29 ms
23,412 KB
testcase_11 AC 28 ms
24,060 KB
testcase_12 AC 29 ms
24,060 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
    string s="0000000000";
    int res=0;
    {
        cout<<s<<endl;
        int x;string t;cin>>x>>t;
        if(x==10)return 0;
        else res=x;
    }
    for(int i = 0; i < 10; i++){
        for(char j = '0'; j <= '9'; j++){
            s[i]=j;
            cout<<s<<endl;
            int x;string t;cin>>x>>t;
            if(x==10)return 0;
            if(x>res){
                res=x;
                break;
            }
        }
    }
    return 0;
}
0