結果
| 問題 |
No.355 数当てゲーム(2)
|
| コンテスト | |
| ユーザー |
Snark86
|
| 提出日時 | 2016-04-01 23:18:24 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 358 bytes |
| コンパイル時間 | 153 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 25,928 KB |
| 平均クエリ数 | 1.00 |
| 最終ジャッジ日時 | 2024-07-16 09:14:01 |
| 合計ジャッジ時間 | 11,677 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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
Snark86