結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 21:47:58 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| 記録 | |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 85,132 KB |
| 実行使用メモリ | 77,764 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2026-03-21 16:59:43 |
| 合計ジャッジ時間 | 1,708 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 WA * 4 |
ソースコード
print(f"? 1", flush=True)
y1 = int(input())
print(f"? 100", flush=True)
y2 = int(input())
for a in range(0, 100):
for b in range(a+1, 101):
if (a+1)%b==y1 and (a+100)%b==y2:
print(f"! {a} {b}")
exit()