結果
問題 |
No.355 数当てゲーム(2)
|
ユーザー |
![]() |
提出日時 | 2016-07-02 15:26:59 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 389 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,736 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-07-16 10:31:20 |
合計ジャッジ時間 | 13,985 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 52 |
ソースコード
import sys n = [] for i in range(10): print(i,i,i,i) sys.stdout.flush() x,y = map(int,input().split()) if (x >= 1 and y != 0) or(x == 4 and y == 0): n.append(i) m = [0] * 4 def dfs(s): if s == 4: print(' '.join(map(str,m))) sys.stdout.flush() x,y = map(int,input().split()) if x == 4 and y == 0: sys.exit(0) return for i in n: m[s] = i dfs(s + 1) m[s] = 0 dfs(0)