結果
| 問題 |
No.2357 Guess the Function
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 23:39:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 63 ms / 1,000 ms |
| コード長 | 215 bytes |
| コンパイル時間 | 173 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 68,952 KB |
| 平均クエリ数 | 2.91 |
| 最終ジャッジ日時 | 2024-07-01 03:26:23 |
| 合計ジャッジ時間 | 1,782 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
x1 = 100
print(f"? {x1}", flush=True)
y1 = int(input())
if y1==99:
print(f"! 99 100")
exit()
x2 = x1 - y1 - 1
print(f"? {x2}", flush=True)
y2 = int(input())
print(f"! {(y2-x2)%(y2+1)} {y2+1}" ,flush=True)