結果
| 問題 | No.355 数当てゲーム(2) |
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2016-04-01 22:45:32 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 483 bytes |
| 記録 | |
| コンパイル時間 | 88 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 28,616 KB |
| 平均クエリ数 | 87.25 |
| 最終ジャッジ日時 | 2024-07-16 08:56:38 |
| 合計ジャッジ時間 | 10,925 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 38 |
ソースコード
import sys
import random
import itertools
ans = []
a,b,c,d = random.sample([0,1,2,3,4,5,6,7,8,9],4)
while True:
print(a,b,c,d)
sys.stdout.flush()
x,y =map(int, input().split())
if x == 4:
exit()
if x + y == 4:
ans = [a,b,c,d]
break
else:
a,b,c,d = random.sample([0,1,2,3,4,5,6,7,8,9],4)
for a in itertools.permutations(ans):
print(*a)
sys.stdout.flush()
x,y=map(int, input().split())
if x==4:
exit()
matsu7874