結果

問題 No.355 数当てゲーム(2)
ユーザー tookunn_1213
提出日時 2016-07-02 15:18:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 342 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,736 KB
平均クエリ数 1.00
最終ジャッジ日時 2024-07-16 10:31:35
合計ジャッジ時間 13,585 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 52
権限があれば一括ダウンロードができます

ソースコード

diff #

n = []
for i in range(10):
	print(i,i,i,i)
	x,y = map(int,input().split())
	if y != 0:
		n.append(i)
m = [0] * 4
def dfs(s):
	if s == 4:
		print(' '.join(map(str,m)))
		x,y = map(int,input().split())
		if x == 4 and y == 0:
			return True
		return False
	for i in n:
		m[s] = i
		if(dfs(s + 1)):
			return True
		m[s] = 0
	return False
dfs(0)
0