結果

問題 No.355 数当てゲーム(2)
ユーザー MitI_7MitI_7
提出日時 2016-04-04 20:01:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 190 bytes
コンパイル時間 227 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 24,936 KB
平均クエリ数 9.10
最終ジャッジ日時 2023-09-23 23:42:50
合計ジャッジ時間 5,550 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
24,752 KB
testcase_01 AC 45 ms
24,540 KB
testcase_02 AC 44 ms
24,452 KB
testcase_03 AC 41 ms
24,852 KB
testcase_04 AC 44 ms
24,264 KB
testcase_05 AC 41 ms
24,936 KB
testcase_06 AC 45 ms
24,884 KB
testcase_07 AC 43 ms
24,400 KB
testcase_08 AC 45 ms
24,696 KB
testcase_09 AC 45 ms
24,756 KB
testcase_10 AC 43 ms
24,184 KB
testcase_11 AC 42 ms
24,280 KB
testcase_12 AC 42 ms
24,808 KB
testcase_13 AC 43 ms
24,676 KB
testcase_14 AC 38 ms
24,256 KB
testcase_15 AC 45 ms
24,836 KB
testcase_16 AC 44 ms
24,504 KB
testcase_17 AC 41 ms
24,200 KB
testcase_18 AC 41 ms
24,552 KB
testcase_19 AC 44 ms
24,336 KB
testcase_20 AC 41 ms
24,552 KB
testcase_21 AC 45 ms
24,240 KB
testcase_22 AC 45 ms
24,504 KB
testcase_23 AC 45 ms
24,136 KB
testcase_24 AC 44 ms
24,336 KB
testcase_25 AC 43 ms
24,776 KB
testcase_26 AC 45 ms
24,744 KB
testcase_27 AC 45 ms
24,476 KB
testcase_28 AC 44 ms
24,504 KB
testcase_29 AC 41 ms
24,472 KB
testcase_30 AC 44 ms
24,588 KB
testcase_31 AC 43 ms
24,828 KB
testcase_32 AC 44 ms
24,780 KB
testcase_33 AC 42 ms
24,120 KB
testcase_34 AC 41 ms
24,516 KB
testcase_35 AC 34 ms
24,748 KB
testcase_36 AC 43 ms
24,456 KB
testcase_37 AC 43 ms
24,364 KB
testcase_38 AC 45 ms
24,264 KB
testcase_39 AC 44 ms
24,288 KB
testcase_40 AC 42 ms
24,360 KB
testcase_41 AC 44 ms
24,744 KB
testcase_42 AC 46 ms
24,352 KB
testcase_43 AC 46 ms
24,672 KB
testcase_44 AC 45 ms
24,560 KB
testcase_45 AC 40 ms
24,468 KB
testcase_46 AC 41 ms
24,612 KB
testcase_47 AC 43 ms
24,768 KB
testcase_48 AC 43 ms
24,560 KB
testcase_49 AC 50 ms
24,708 KB
testcase_50 AC 43 ms
24,336 KB
testcase_51 AC 40 ms
24,724 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:6: SyntaxWarning: invalid decimal literal
  l=[n for n in l if sum(1for i in range(4)if n[i]==q[i])==a]

ソースコード

diff #

import itertools as z
l=list(z.permutations("0123456789",4))
while 1:
 q=l[0];print(" ".join(q));a=int(input()[0])
 if a==4:break
 l=[n for n in l if sum(1for i in range(4)if n[i]==q[i])==a]
0