結果

問題 No.305 鍵(2)
ユーザー Mcpu3Mcpu3
提出日時 2018-09-17 23:40:38
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 479 bytes
コンパイル時間 592 ms
コンパイル使用メモリ 27,788 KB
実行使用メモリ 24,276 KB
平均クエリ数 86.69
最終ジャッジ日時 2023-09-24 01:54:09
合計ジャッジ時間 1,941 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
24,024 KB
testcase_01 AC 25 ms
23,532 KB
testcase_02 AC 25 ms
23,388 KB
testcase_03 AC 25 ms
24,276 KB
testcase_04 AC 24 ms
23,328 KB
testcase_05 AC 24 ms
24,024 KB
testcase_06 AC 22 ms
23,964 KB
testcase_07 AC 25 ms
23,916 KB
testcase_08 AC 25 ms
23,664 KB
testcase_09 AC 23 ms
24,048 KB
testcase_10 AC 24 ms
23,556 KB
testcase_11 AC 24 ms
24,048 KB
testcase_12 AC 25 ms
24,216 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main(void)
{
    int a[10]={0},m,t1,t2,i,j,k;
    for(i=0;i<10;++i){
        m=0;
        for(j=0;j<10;++j){
            a[i]=j;
            for(k=0;k<10;++k)printf("%d",a[k]);
            puts("");
            fflush(0);
            scanf("%d%*s",&t1);
            if(t1>9)break;
            if(t1>m){
                m=t1;
                t2=j;
            }
        }
        if(10>j)break;
        a[i]=t2;
    }
    return 0;
}
0