結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-06-26 12:19:12 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 211 ms / 1,000 ms |
| + 2µs | |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 96,104 KB |
| 実行使用メモリ | 79,232 KB |
| 平均クエリ数 | 2.91 |
| 最終ジャッジ日時 | 2026-08-04 15:09:47 |
| 合計ジャッジ時間 | 2,346 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
import sys
print("? 100")
sys.stdout.flush()
r = int(input())
if r == 99:
print("! 99 100")
exit()
print("? {}".format(100 - r - 1))
sys.stdout.flush()
B = int(input()) + 1
A = (r - 100) % B
print("! {} {}".format(A, B))
rlangevin