結果

問題 No.305 鍵(2)
ユーザー btkbtk
提出日時 2015-11-27 23:38:21
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 31 ms / 2,000 ms
コード長 425 bytes
コンパイル時間 1,329 ms
コンパイル使用メモリ 145,668 KB
実行使用メモリ 24,300 KB
平均クエリ数 86.69
最終ジャッジ日時 2023-09-23 22:05:40
合計ジャッジ時間 2,531 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
23,388 KB
testcase_01 AC 27 ms
24,024 KB
testcase_02 AC 27 ms
23,364 KB
testcase_03 AC 27 ms
24,228 KB
testcase_04 AC 27 ms
23,328 KB
testcase_05 AC 26 ms
23,172 KB
testcase_06 AC 23 ms
23,508 KB
testcase_07 AC 26 ms
24,240 KB
testcase_08 AC 27 ms
24,048 KB
testcase_09 AC 26 ms
23,520 KB
testcase_10 AC 26 ms
23,292 KB
testcase_11 AC 25 ms
24,024 KB
testcase_12 AC 27 ms
24,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
    string u="0000000000";
    int res=0;
    for(int i = 0; i < 10; i++){
        string s=u;
        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;
                u=s;
            }
        }
    }
    return 0;
}
0