結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-26 19:06:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 70 ms / 1,000 ms |
| コード長 | 170 bytes |
| 記録 | |
| コンパイル時間 | 346 ms |
| コンパイル使用メモリ | 82,844 KB |
| 実行使用メモリ | 70,828 KB |
| 平均クエリ数 | 2.91 |
| 最終ジャッジ日時 | 2025-12-26 19:06:15 |
| 合計ジャッジ時間 | 2,380 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
print("? 100")
n = int(input())
if n == 99:
print("! 99 100")
exit()
print(f"? {99-n}")
n2 = int(input())
print(f"! {(-(100-n)+(n2+1)*1000000) % (n2+1)} {n2+1}")