結果

問題 No.2357 Guess the Function
ユーザー lloyzlloyz
提出日時 2023-06-27 01:20:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 231 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 10,600 KB
実行使用メモリ 24,384 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-16 21:00:17
合計ジャッジ時間 1,458 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
23,444 KB
testcase_01 AC 40 ms
23,492 KB
testcase_02 AC 36 ms
23,528 KB
testcase_03 AC 37 ms
23,932 KB
testcase_04 AC 36 ms
23,748 KB
testcase_05 AC 38 ms
24,336 KB
testcase_06 AC 36 ms
23,532 KB
testcase_07 AC 36 ms
24,384 KB
testcase_08 AC 35 ms
23,844 KB
testcase_09 AC 35 ms
23,484 KB
testcase_10 AC 37 ms
24,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x1 = 100
print(f"? {x1}")
y1 = int(input())
if y1 == 99:
    print("! 99 100")
    exit()

x2 = 99 - y1
print(f"? {x2}")
y2 = int(input())
b = y2 + 1
for i in range(b):
    if (100 + i) % b == y1:
        a = i
print(f"! {a} {b}")
0