結果

問題 No.355 数当てゲーム(2)
ユーザー matsu7874matsu7874
提出日時 2016-04-01 22:45:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 483 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,908 KB
実行使用メモリ 25,252 KB
平均クエリ数 88.15
最終ジャッジ日時 2023-09-23 09:12:29
合計ジャッジ時間 9,974 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
24,996 KB
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 45 ms
24,996 KB
testcase_05 AC 46 ms
25,036 KB
testcase_06 AC 48 ms
24,640 KB
testcase_07 AC 44 ms
24,576 KB
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 43 ms
25,124 KB
testcase_21 AC 45 ms
24,936 KB
testcase_22 RE -
testcase_23 AC 43 ms
24,544 KB
testcase_24 AC 43 ms
24,832 KB
testcase_25 AC 43 ms
24,436 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 AC 44 ms
24,944 KB
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 AC 43 ms
24,376 KB
testcase_41 AC 44 ms
24,432 KB
testcase_42 RE -
testcase_43 AC 44 ms
24,860 KB
testcase_44 RE -
testcase_45 RE -
testcase_46 RE -
testcase_47 RE -
testcase_48 RE -
testcase_49 AC 46 ms
25,152 KB
testcase_50 RE -
testcase_51 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import random
import itertools

ans = []

a,b,c,d = random.sample([0,1,2,3,4,5,6,7,8,9],4)
while True:
    print(a,b,c,d)
    sys.stdout.flush()
    x,y =map(int, input().split())
    if x == 4:
        exit()
    if x + y == 4:
        ans = [a,b,c,d]
        break
    else:
        a,b,c,d = random.sample([0,1,2,3,4,5,6,7,8,9],4)

for a in itertools.permutations(ans):
    print(*a)
    sys.stdout.flush()
    x,y=map(int, input().split())
    if x==4:
        exit()
0