結果
| 問題 |
No.355 数当てゲーム(2)
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-10-16 19:48:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 62 ms / 2,000 ms |
| コード長 | 556 bytes |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 82,660 KB |
| 実行使用メモリ | 71,600 KB |
| 平均クエリ数 | 21.67 |
| 最終ジャッジ日時 | 2025-10-16 19:48:29 |
| 合計ジャッジ時間 | 6,814 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
ソースコード
from itertools import permutations
X = []
for i in range(7):
A = [i,7,8,9]
print(*A)
R = list(map(int,input().split()))
if R== [4,0]:
exit()
X.append(sum(R))
NI = []
I = []
maxa = max(X)
for i in range(7):
if X[i] == maxa:
I.append(i)
else:
NI.append(i)
for i in range(7,10):
A = [i] + NI[:3]
print(*A)
R = list(map(int,input().split()))
if sum(R) == 1:
I.append(i)
for x in permutations(I,4):
print(*x)
R = list(map(int,input().split()))
if R== [4,0]:
exit()
ntuda