結果
問題 |
No.2357 Guess the Function
|
ユーザー |
![]() |
提出日時 | 2023-06-26 12:19:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 57 ms / 1,000 ms |
コード長 | 230 bytes |
コンパイル時間 | 414 ms |
コンパイル使用メモリ | 82,340 KB |
実行使用メモリ | 70,380 KB |
平均クエリ数 | 2.91 |
最終ジャッジ日時 | 2024-07-03 06:59:47 |
合計ジャッジ時間 | 1,767 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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))