結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 21:51:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 463 bytes |
| 記録 | |
| コンパイル時間 | 218 ms |
| コンパイル使用メモリ | 95,600 KB |
| 実行使用メモリ | 79,104 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2026-08-02 22:43:35 |
| 合計ジャッジ時間 | 2,141 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 WA * 5 |
ソースコード
import sys
print("? 1")
sys.stdout.flush()
A = int(input())
if A >= 1:
A -= 1
print("? 100")
sys.stdout.flush()
A2 = int(input())
for B in range(A + 1, 101):
if (A + 100) % B == A2:
break
print("!", A, B)
sys.stdout.flush()
else:
print("? 100")
sys.stdout.flush()
A2 = int(input())
for B in range(1, 101):
if 99 % B == A2:
break
print("!", B - 1, B)
sys.stdout.flush()