結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 AC 47 ms
24,476 KB
testcase_02 AC 49 ms
24,712 KB
testcase_03 AC 44 ms
24,920 KB
testcase_04 RE -
testcase_05 AC 48 ms
25,220 KB
testcase_06 AC 47 ms
24,348 KB
testcase_07 AC 42 ms
24,452 KB
testcase_08 AC 45 ms
24,724 KB
testcase_09 RE -
testcase_10 AC 48 ms
24,492 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 49 ms
25,288 KB
testcase_17 RE -
testcase_18 RE -
testcase_19 AC 46 ms
24,484 KB
testcase_20 AC 48 ms
25,192 KB
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 45 ms
24,540 KB
testcase_25 AC 43 ms
24,824 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 45 ms
25,120 KB
testcase_29 AC 46 ms
24,524 KB
testcase_30 AC 47 ms
24,772 KB
testcase_31 AC 47 ms
24,912 KB
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
testcase_35 RE -
testcase_36 RE -
testcase_37 RE -
testcase_38 RE -
testcase_39 RE -
testcase_40 AC 46 ms
24,928 KB
testcase_41 RE -
testcase_42 RE -
testcase_43 RE -
testcase_44 AC 47 ms
24,636 KB
testcase_45 AC 45 ms
24,888 KB
testcase_46 AC 45 ms
25,012 KB
testcase_47 RE -
testcase_48 AC 49 ms
24,900 KB
testcase_49 RE -
testcase_50 RE -
testcase_51 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import random
import itertools

ans = []
while True:
    a,b,c,d = random.sample([0,1,2,3,4,5,6,7,8,9],4)
    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
for a in itertools.permutations(ans):
    print(*a)
    sys.stdout.flush()
    x,y=map(int, input().split())
    if x==4:
        exit()
0