結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 23:37:06 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 1,000 ms |
| コード長 | 281 bytes |
| 記録 | |
| コンパイル時間 | 421 ms |
| コンパイル使用メモリ | 85,524 KB |
| 実行使用メモリ | 71,072 KB |
| 平均クエリ数 | 2.91 |
| 最終ジャッジ日時 | 2026-03-21 20:44:03 |
| 合計ジャッジ時間 | 1,961 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
print("?", 100)
k1 = int(input())
if k1 == 99:
print("!", 99, 100)
else:
print("?", 100 - k1 - 1)
k2 = int(input())
B = k2 + 1
for A in range(100):
if (100 + A) % B == k1 and (100 - k1 - 1 + A) % B == k2:
print("!", A, B)
quit()