結果

問題 No.355 数当てゲーム(2)
ユーザー tnodinotnodino
提出日時 2022-06-14 17:59:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 549 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 10,972 KB
実行使用メモリ 25,056 KB
平均クエリ数 16.42
最終ジャッジ日時 2023-09-24 03:04:01
合計ジャッジ時間 5,944 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
24,196 KB
testcase_01 AC 60 ms
24,416 KB
testcase_02 AC 58 ms
24,812 KB
testcase_03 AC 57 ms
24,484 KB
testcase_04 AC 62 ms
24,884 KB
testcase_05 AC 58 ms
24,960 KB
testcase_06 AC 59 ms
24,756 KB
testcase_07 AC 53 ms
24,776 KB
testcase_08 AC 54 ms
24,392 KB
testcase_09 AC 56 ms
24,640 KB
testcase_10 AC 57 ms
24,416 KB
testcase_11 AC 58 ms
24,328 KB
testcase_12 AC 57 ms
24,832 KB
testcase_13 AC 60 ms
24,424 KB
testcase_14 AC 55 ms
24,560 KB
testcase_15 AC 54 ms
24,308 KB
testcase_16 AC 57 ms
25,056 KB
testcase_17 AC 57 ms
24,952 KB
testcase_18 AC 55 ms
25,004 KB
testcase_19 AC 60 ms
24,476 KB
testcase_20 AC 59 ms
24,712 KB
testcase_21 AC 55 ms
24,968 KB
testcase_22 AC 57 ms
24,676 KB
testcase_23 AC 58 ms
24,908 KB
testcase_24 AC 54 ms
24,636 KB
testcase_25 AC 60 ms
24,780 KB
testcase_26 AC 58 ms
24,404 KB
testcase_27 AC 58 ms
24,668 KB
testcase_28 AC 59 ms
24,672 KB
testcase_29 AC 59 ms
24,472 KB
testcase_30 AC 60 ms
24,468 KB
testcase_31 AC 58 ms
24,660 KB
testcase_32 AC 56 ms
24,408 KB
testcase_33 AC 59 ms
24,664 KB
testcase_34 AC 59 ms
24,548 KB
testcase_35 AC 47 ms
24,596 KB
testcase_36 AC 57 ms
24,660 KB
testcase_37 AC 59 ms
24,804 KB
testcase_38 AC 59 ms
24,492 KB
testcase_39 AC 59 ms
24,312 KB
testcase_40 AC 59 ms
24,540 KB
testcase_41 AC 58 ms
24,292 KB
testcase_42 AC 57 ms
24,516 KB
testcase_43 AC 57 ms
24,716 KB
testcase_44 AC 57 ms
24,924 KB
testcase_45 AC 59 ms
24,340 KB
testcase_46 AC 56 ms
24,756 KB
testcase_47 AC 57 ms
24,380 KB
testcase_48 AC 57 ms
24,492 KB
testcase_49 AC 58 ms
24,768 KB
testcase_50 AC 58 ms
24,612 KB
testcase_51 AC 56 ms
24,592 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def question(N):
    print(*N)
    return map(int,input().split())

s = []
for a in range(10):
    for b in range(10):
        for c in range(10):
            for d in range(10):
                l = [a, b, c, d]
                if len(set(l)) == 4:
                    s.append(l)
while True:
    h,b = question(s[0])
    if h == 4:
        break
    t = []
    for i in range(1,len(s)):
        cnt = 0
        for k in range(4):
            if s[i][k] in s[0]:
                cnt += 1
        if cnt == h + b:
            t.append(s[i])
    s = t
0