結果
問題 | No.2252 Find Zero |
ユーザー |
![]() |
提出日時 | 2023-03-24 21:28:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 109 ms / 2,000 ms |
コード長 | 295 bytes |
コンパイル時間 | 338 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 27,208 KB |
平均クエリ数 | 78.17 |
最終ジャッジ日時 | 2024-09-18 16:44:57 |
合計ジャッジ時間 | 3,197 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 |
ソースコード
import sys input = sys.stdin.readline N=int(input()) for i in range(0,N-1,2): j=i+1 print("?",i,j,flush=True) x=int(input()) if x==i: print("!",j,flush=True) break elif x==j: print("!",i,flush=True) break else: print("!",N-1,flush=True)