結果

問題 No.2357 Guess the Function
ユーザー 遭難者遭難者
提出日時 2023-05-09 20:50:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 100 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,160 KB
実行使用メモリ 87,212 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-08-21 05:16:08
合計ジャッジ時間 2,368 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
86,540 KB
testcase_01 AC 96 ms
87,076 KB
testcase_02 AC 98 ms
87,036 KB
testcase_03 AC 95 ms
87,164 KB
testcase_04 AC 97 ms
87,028 KB
testcase_05 AC 98 ms
86,828 KB
testcase_06 AC 96 ms
87,132 KB
testcase_07 AC 96 ms
87,104 KB
testcase_08 AC 96 ms
86,756 KB
testcase_09 AC 100 ms
87,212 KB
testcase_10 AC 96 ms
86,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("?", 100)
y = int(input())
if y == 99:
    A, B = 99, 100
else:
    print("?", 99 - y)
    B = int(input()) + 1
    A = (y - 100) % B
print("!", A, B)
assert 0 <= A < B <= 100
0