結果
| 問題 |
No.2252 Find Zero
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2023-03-24 21:26:15 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 300 ms |
| コンパイル使用メモリ | 81,556 KB |
| 実行使用メモリ | 88,364 KB |
| 平均クエリ数 | 78.17 |
| 最終ジャッジ日時 | 2024-09-18 16:42:28 |
| 合計ジャッジ時間 | 3,590 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 RE * 4 |
ソースコード
n = int(input())
for i in range(0, n, 2):
print('?', i, i + 1)
x = int(input())
if i == x:
print('!', i + 1)
break
elif i + 1 == x:
print('!', i)
break
else:
print('!', n - 1)
hir355