結果
| 問題 |
No.2252 Find Zero
|
| コンテスト | |
| ユーザー |
mkawa2
|
| 提出日時 | 2023-03-24 21:27:38 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 27,792 KB |
| 平均クエリ数 | 78.17 |
| 最終ジャッジ日時 | 2024-09-18 16:44:28 |
| 合計ジャッジ時間 | 3,019 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 14 |
ソースコード
def ask(i,j):
print("?",i,j,flush=True)
return int(input())
n=int(input())
for i in range(0,n-1,2):
j=ask(i,i+1)
if i==j or i+1==j:
print("!",j,flush=True)
exit()
print("!",n-1,flush=True)
mkawa2