結果

問題 No.2357 Guess the Function
ユーザー Alex WiceAlex Wice
提出日時 2023-06-23 22:01:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 1,000 ms
コード長 314 bytes
コンパイル時間 1,080 ms
コンパイル使用メモリ 87,064 KB
実行使用メモリ 91,728 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-13 17:02:46
合計ジャッジ時間 2,348 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
86,812 KB
testcase_01 AC 95 ms
86,816 KB
testcase_02 AC 95 ms
87,352 KB
testcase_03 AC 98 ms
91,388 KB
testcase_04 AC 100 ms
90,980 KB
testcase_05 AC 94 ms
86,832 KB
testcase_06 AC 101 ms
91,716 KB
testcase_07 AC 98 ms
91,696 KB
testcase_08 AC 98 ms
87,136 KB
testcase_09 AC 97 ms
91,728 KB
testcase_10 AC 97 ms
91,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

print("? 100")
sys.stdout.flush()
A100 = int(input())

X = 99 - 2 * A100
if X < 1:
    X = 1
print("?", X)
sys.stdout.flush()
AX = int(input())

for a in range(100):
    for b in range(a + 1, 101):
        if (a + 100) % b == A100 and (a + X) % b == AX:
            print("!", a, b)
            exit()
0