結果
| 問題 |
No.2357 Guess the Function
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 21:47:58 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 260 ms |
| コンパイル使用メモリ | 82,032 KB |
| 実行使用メモリ | 74,820 KB |
| 平均クエリ数 | 3.00 |
| 最終ジャッジ日時 | 2024-07-01 01:22:50 |
| 合計ジャッジ時間 | 1,958 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()