結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-08-11 17:05:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 1,000 ms |
| コード長 | 243 bytes |
| 記録 | |
| コンパイル時間 | 131 ms |
| コンパイル使用メモリ | 85,044 KB |
| 実行使用メモリ | 72,148 KB |
| 平均クエリ数 | 2.91 |
| 最終ジャッジ日時 | 2026-04-03 20:55:29 |
| 合計ジャッジ時間 | 1,549 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
print('?', 100, flush = True)
x = int(input())
if x == 99:
print('!', 99, 100, flush = True)
else:
print('?', 99 - x, flush = True)
B = int(input()) + 1
for t in range(B):
if (t + 100) % B == x:
print('!', t, B, flush = True)
break