結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 21:52:57 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 85,324 KB |
| 実行使用メモリ | 78,236 KB |
| 平均クエリ数 | 2.82 |
| 最終ジャッジ日時 | 2026-03-21 17:09:26 |
| 合計ジャッジ時間 | 1,849 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 1 WA * 9 |
ソースコード
import sys
print("? 99")
sys.stdout.flush()
A99 = int(input())
print("? 100")
sys.stdout.flush()
A100 = int(input())
for A in range(100):
for B in range(A + 1, 100):
if (A + 99) % B == A99 and (A + 100) % B == A100:
print("!", A, B)
sys.stdout.flush()
exit()