結果
問題 | No.355 数当てゲーム(2) |
ユーザー |
![]() |
提出日時 | 2016-04-01 23:28:20 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 358 bytes |
コンパイル時間 | 252 ms |
コンパイル使用メモリ | 7,200 KB |
実行使用メモリ | 25,488 KB |
平均クエリ数 | 1.00 |
最終ジャッジ日時 | 2024-07-16 09:19:29 |
合計ジャッジ時間 | 11,855 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 52 |
ソースコード
import itertools import sys l = [] for i in range(10): print " ".join([str(i) for _ in range(4)]) sys.stdout.flush() a = int(raw_input()[0]) if 0 < a < 4: for _ in range(a): l.append(i) elif a == 4: break if len(l) == 4: for j in itertools.permutations(l): print " ".join(map(str,j)) sys.stdout.flush() if int(raw_input()[0]) == 4: break