結果
| 問題 |
No.355 数当てゲーム(2)
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2022-11-29 01:25:43 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 59 ms / 2,000 ms |
| コード長 | 789 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 27,736 KB |
| 平均クエリ数 | 31.00 |
| 最終ジャッジ日時 | 2024-07-17 03:14:31 |
| 合計ジャッジ時間 | 5,734 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
ソースコード
ANS=[-1,-1,-1,-1]
for ind in range(4):
L=[]
for i in range(5):
A=[6,7,8,9]
A[ind]=i
print(*A,flush=True)
x,y=map(int,input().split())
if x==4 and y==0:
exit()
else:
L.append(x)
if len(set(L))==1:
pass
else:
MAX=max(L)
k=L.index(MAX)
ANS[ind]=k
continue
L=[]
for i in range(5,10):
A=[0,1,2,3]
A[ind]=i
print(*A,flush=True)
x,y=map(int,input().split())
if x==4 and y==0:
exit()
else:
L.append(x)
if len(set(L))==1:
pass
else:
MAX=max(L)
k=L.index(MAX)
ANS[ind]=k+5
continue
print(*ANS,flush=True)
x,y=map(int,input().split())
titia