結果

問題 No.2357 Guess the Function
コンテスト
ユーザー miya145592
提出日時 2023-06-23 22:23:26
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 280 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 431 ms
コンパイル使用メモリ 85,704 KB
実行使用メモリ 79,028 KB
平均クエリ数 3.00
最終ジャッジ日時 2026-03-21 18:17:24
合計ジャッジ時間 1,799 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 1
other AC * 6 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

x1 = 3
print(f"? {x1}", flush=True)
y1 = int(input())

x2 = 100
print(f"? {x2}", flush=True)
y2 = int(input())

for a in range(0, 100):
    for b in range(a+1, 101):
        if (a+x1)%b==y1 and (a+x2)%b==y2:
            print(f"! {a} {b}", flush=True)
            exit()
        
0