結果

問題 No.355 数当てゲーム(2)
ユーザー tabataba
提出日時 2016-04-14 18:22:45
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 537 bytes
コンパイル時間 115 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 24,456 KB
平均クエリ数 62.90
最終ジャッジ日時 2023-09-23 10:23:15
合計ジャッジ時間 9,306 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 AC 51 ms
24,300 KB
testcase_03 AC 73 ms
23,376 KB
testcase_04 RE -
testcase_05 RE -
testcase_06 AC 97 ms
24,012 KB
testcase_07 AC 49 ms
23,484 KB
testcase_08 AC 55 ms
23,484 KB
testcase_09 AC 59 ms
23,388 KB
testcase_10 RE -
testcase_11 AC 68 ms
23,952 KB
testcase_12 AC 64 ms
23,964 KB
testcase_13 RE -
testcase_14 AC 58 ms
23,484 KB
testcase_15 RE -
testcase_16 AC 56 ms
23,628 KB
testcase_17 AC 95 ms
23,352 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 AC 51 ms
23,776 KB
testcase_21 AC 51 ms
23,956 KB
testcase_22 AC 95 ms
23,640 KB
testcase_23 AC 49 ms
23,316 KB
testcase_24 AC 49 ms
23,364 KB
testcase_25 RE -
testcase_26 RE -
testcase_27 AC 52 ms
24,324 KB
testcase_28 AC 57 ms
23,412 KB
testcase_29 AC 107 ms
23,664 KB
testcase_30 RE -
testcase_31 AC 73 ms
24,288 KB
testcase_32 AC 49 ms
24,064 KB
testcase_33 AC 50 ms
23,628 KB
testcase_34 RE -
testcase_35 AC 46 ms
23,604 KB
testcase_36 RE -
testcase_37 AC 57 ms
24,208 KB
testcase_38 AC 60 ms
24,264 KB
testcase_39 AC 97 ms
23,484 KB
testcase_40 AC 50 ms
23,428 KB
testcase_41 AC 58 ms
23,460 KB
testcase_42 AC 51 ms
23,316 KB
testcase_43 AC 57 ms
23,776 KB
testcase_44 AC 74 ms
23,956 KB
testcase_45 AC 102 ms
23,376 KB
testcase_46 RE -
testcase_47 AC 96 ms
24,024 KB
testcase_48 AC 64 ms
23,356 KB
testcase_49 AC 51 ms
23,788 KB
testcase_50 RE -
testcase_51 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
k=[i for i in["{0:0>4}".format(i)for i in range(10000)]if len(set(i))==4]
for _ in range(5040):
	print k[0][0],k[0][1],k[0][2],k[0][3]
	sys.stdout.flush()
	s=raw_input()
	if s=="4 0":
		break
	elif s=="0 0":
		k=[i for i in k if not(i[0]in k[0]or i[1]in k[0]or i[2]in k[0]or i[3]in k[0])]
	elif s=="0 4":
		k=[i for i in k if i[0]in k[0]and i[1]in k[0]and i[2]in k[0]and i[3]in k[0]]
		k.pop(0)
	else:
		k=[i for i in k if i[0]in k[0]or i[1]in k[0]or i[2]in k[0]or i[3]in k[0]]
		k.pop(0)
	#print len(k)
	if len(k)==0:
		break
0