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