結果

問題 No.355 数当てゲーム(2)
ユーザー titiatitia
提出日時 2022-11-29 01:25:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 789 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 10,804 KB
実行使用メモリ 24,512 KB
平均クエリ数 31.00
最終ジャッジ日時 2023-09-24 03:08:22
合計ジャッジ時間 4,344 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
23,916 KB
testcase_01 AC 36 ms
24,504 KB
testcase_02 AC 33 ms
24,384 KB
testcase_03 AC 33 ms
23,796 KB
testcase_04 AC 33 ms
24,288 KB
testcase_05 AC 32 ms
24,296 KB
testcase_06 AC 35 ms
24,344 KB
testcase_07 AC 35 ms
24,332 KB
testcase_08 AC 36 ms
23,948 KB
testcase_09 AC 33 ms
24,140 KB
testcase_10 AC 36 ms
24,388 KB
testcase_11 AC 36 ms
23,980 KB
testcase_12 AC 34 ms
23,908 KB
testcase_13 AC 35 ms
24,096 KB
testcase_14 AC 34 ms
24,224 KB
testcase_15 AC 32 ms
23,968 KB
testcase_16 AC 32 ms
24,012 KB
testcase_17 AC 33 ms
23,996 KB
testcase_18 AC 33 ms
23,416 KB
testcase_19 AC 32 ms
24,252 KB
testcase_20 AC 31 ms
24,220 KB
testcase_21 AC 33 ms
23,728 KB
testcase_22 AC 33 ms
23,940 KB
testcase_23 AC 32 ms
24,284 KB
testcase_24 AC 35 ms
23,916 KB
testcase_25 AC 32 ms
23,952 KB
testcase_26 AC 33 ms
24,292 KB
testcase_27 AC 33 ms
24,324 KB
testcase_28 AC 32 ms
23,928 KB
testcase_29 AC 32 ms
24,092 KB
testcase_30 AC 32 ms
24,444 KB
testcase_31 AC 33 ms
23,772 KB
testcase_32 AC 33 ms
23,808 KB
testcase_33 AC 33 ms
23,928 KB
testcase_34 AC 34 ms
23,612 KB
testcase_35 AC 33 ms
23,944 KB
testcase_36 AC 34 ms
24,376 KB
testcase_37 AC 35 ms
24,176 KB
testcase_38 AC 36 ms
24,404 KB
testcase_39 AC 38 ms
24,288 KB
testcase_40 AC 38 ms
24,288 KB
testcase_41 AC 37 ms
24,512 KB
testcase_42 AC 37 ms
23,864 KB
testcase_43 AC 35 ms
24,112 KB
testcase_44 AC 33 ms
24,008 KB
testcase_45 AC 37 ms
23,960 KB
testcase_46 AC 38 ms
24,104 KB
testcase_47 AC 36 ms
24,164 KB
testcase_48 AC 34 ms
24,156 KB
testcase_49 AC 35 ms
23,600 KB
testcase_50 AC 35 ms
24,356 KB
testcase_51 AC 36 ms
23,808 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ANS=[-1,-1,-1,-1]

for ind in range(4):
    
    L=[]
    for i in range(5):
        A=[6,7,8,9]
        A[ind]=i
        print(*A,flush=True)
        x,y=map(int,input().split())
        if x==4 and y==0:
            exit()
        else:
            L.append(x)

    if len(set(L))==1:
        pass
    else:
        MAX=max(L)
        k=L.index(MAX)
        ANS[ind]=k
        continue
    L=[]
    for i in range(5,10):
        A=[0,1,2,3]
        A[ind]=i
        print(*A,flush=True)
        x,y=map(int,input().split())
        if x==4 and y==0:
            exit()
        else:
            L.append(x)

    if len(set(L))==1:
        pass
    else:
        MAX=max(L)
        k=L.index(MAX)
        ANS[ind]=k+5
        continue

print(*ANS,flush=True)
x,y=map(int,input().split())
0