結果

問題 No.2357 Guess the Function
ユーザー Nikkuniku029Nikkuniku029
提出日時 2023-06-24 11:30:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 214 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,672 KB
実行使用メモリ 24,468 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-14 07:03:03
合計ジャッジ時間 1,643 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
24,012 KB
testcase_01 AC 41 ms
24,384 KB
testcase_02 AC 41 ms
23,628 KB
testcase_03 RE -
testcase_04 AC 41 ms
23,688 KB
testcase_05 AC 41 ms
23,744 KB
testcase_06 AC 40 ms
24,348 KB
testcase_07 AC 40 ms
23,604 KB
testcase_08 AC 41 ms
23,952 KB
testcase_09 AC 40 ms
23,628 KB
testcase_10 AC 41 ms
23,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print('? 100', flush=True)
a = int(input())
query = 100-a-1
print('? '+str(query), flush=True)
b = int(input())
B = b+1
for x in range(B):
    if (100+x) % B == a:
        print('! {} {}'.format(x, B), flush=True)
0