結果

問題 No.2357 Guess the Function
ユーザー miya145592miya145592
提出日時 2023-06-23 21:47:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 238 bytes
コンパイル時間 1,598 ms
コンパイル使用メモリ 86,392 KB
実行使用メモリ 91,948 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-13 16:47:47
合計ジャッジ時間 2,303 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
86,632 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 99 ms
91,224 KB
testcase_04 AC 98 ms
91,948 KB
testcase_05 AC 96 ms
87,244 KB
testcase_06 AC 97 ms
91,400 KB
testcase_07 AC 97 ms
91,948 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 99 ms
91,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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()
0