結果
問題 | No.2252 Find Zero |
ユーザー |
![]() |
提出日時 | 2023-03-24 21:24:49 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 139 ms / 2,000 ms |
コード長 | 262 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 82,028 KB |
実行使用メモリ | 80,256 KB |
平均クエリ数 | 78.17 |
最終ジャッジ日時 | 2024-09-18 16:40:41 |
合計ジャッジ時間 | 3,510 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 |
ソースコード
import sys input = sys.stdin.readline N = int(input()) for i in range(N//2): x = 2*i y = x+1 print('?', x, y, flush=True) z = int(input()) if z == x or z == y: print('!', z ^ 1, flush=True) exit() print('!', N-1, flush=True)