結果

問題 No.355 数当てゲーム(2)
ユーザー vwxyzvwxyz
提出日時 2023-12-26 07:56:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 574 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 26,120 KB
平均クエリ数 25.54
最終ジャッジ日時 2023-12-26 07:56:14
合計ジャッジ時間 6,975 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
26,112 KB
testcase_01 AC 57 ms
26,112 KB
testcase_02 AC 57 ms
26,112 KB
testcase_03 AC 59 ms
26,112 KB
testcase_04 AC 57 ms
26,112 KB
testcase_05 AC 55 ms
26,112 KB
testcase_06 AC 56 ms
26,112 KB
testcase_07 AC 55 ms
26,112 KB
testcase_08 AC 55 ms
26,112 KB
testcase_09 AC 55 ms
26,112 KB
testcase_10 AC 55 ms
26,112 KB
testcase_11 AC 54 ms
26,112 KB
testcase_12 AC 57 ms
26,112 KB
testcase_13 AC 57 ms
26,112 KB
testcase_14 AC 55 ms
26,112 KB
testcase_15 AC 57 ms
26,112 KB
testcase_16 AC 56 ms
26,112 KB
testcase_17 AC 56 ms
26,112 KB
testcase_18 AC 55 ms
26,112 KB
testcase_19 AC 57 ms
26,112 KB
testcase_20 AC 56 ms
26,120 KB
testcase_21 AC 57 ms
26,120 KB
testcase_22 AC 57 ms
26,120 KB
testcase_23 AC 55 ms
26,120 KB
testcase_24 AC 56 ms
26,120 KB
testcase_25 AC 57 ms
26,120 KB
testcase_26 AC 58 ms
26,120 KB
testcase_27 AC 57 ms
26,120 KB
testcase_28 AC 58 ms
26,120 KB
testcase_29 AC 56 ms
26,120 KB
testcase_30 AC 56 ms
26,120 KB
testcase_31 AC 56 ms
26,120 KB
testcase_32 AC 56 ms
26,120 KB
testcase_33 AC 56 ms
26,120 KB
testcase_34 AC 56 ms
26,120 KB
testcase_35 AC 55 ms
26,120 KB
testcase_36 AC 57 ms
26,120 KB
testcase_37 AC 55 ms
26,120 KB
testcase_38 AC 57 ms
26,120 KB
testcase_39 AC 56 ms
26,120 KB
testcase_40 AC 57 ms
26,120 KB
testcase_41 AC 56 ms
26,120 KB
testcase_42 AC 54 ms
26,120 KB
testcase_43 AC 56 ms
26,120 KB
testcase_44 AC 57 ms
26,120 KB
testcase_45 AC 56 ms
26,120 KB
testcase_46 AC 55 ms
26,120 KB
testcase_47 AC 55 ms
26,120 KB
testcase_48 AC 57 ms
26,120 KB
testcase_49 AC 55 ms
26,120 KB
testcase_50 AC 56 ms
26,120 KB
testcase_51 AC 55 ms
26,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

use=[]
lst=[]
for i in range(7):
    print(i,7,8,9)
    X,Y=map(int,input().split())
    if (X,Y)==(4,0):
        exit()
    lst.append(X+Y)
ma=max(lst)
for i in range(7):
    if lst[i]==ma:
        use.append(i)
lst=[]
for i in range(3,10):
    print(0,1,2,i)
    X,Y=map(int,input().split())
    if (X,Y)==(4,0):
        exit()
    lst.append(X+Y)
ma=max(lst)
for i in range(7,10):
    if lst[i-3]==ma:
        use.append(i)
for tpl in itertools.permutations(use):
    print(*tpl)
    X,Y=map(int,input().split())
    if (X,Y)==(4,0):
        exit()
    
0