結果
問題 |
No.355 数当てゲーム(2)
|
ユーザー |
![]() |
提出日時 | 2022-11-29 00:23:35 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 789 bytes |
コンパイル時間 | 278 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 27,624 KB |
平均クエリ数 | 21.00 |
最終ジャッジ日時 | 2024-10-06 03:17:56 |
合計ジャッジ時間 | 10,677 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 10 RE * 40 |
ソースコード
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))==5: 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))==5: pass else: MAX=max(L) k=L.index(MAX) ANS[ind]=k+5 continue print(*ANS,flush=True) x,y=map(int,input().split())