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