結果

問題 No.2357 Guess the Function
ユーザー lloyzlloyz
提出日時 2023-06-27 01:19:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 24,276 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-16 20:58:41
合計ジャッジ時間 1,465 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 39 ms
24,024 KB
testcase_02 WA -
testcase_03 AC 39 ms
23,816 KB
testcase_04 WA -
testcase_05 AC 40 ms
24,000 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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