結果

問題 No.2357 Guess the Function
ユーザー Nikkuniku029Nikkuniku029
提出日時 2023-06-24 11:31:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 43 ms / 1,000 ms
コード長 271 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 10,632 KB
実行使用メモリ 24,372 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-14 07:04:32
合計ジャッジ時間 1,851 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
23,796 KB
testcase_01 AC 39 ms
24,372 KB
testcase_02 AC 38 ms
23,368 KB
testcase_03 AC 37 ms
23,896 KB
testcase_04 AC 39 ms
23,488 KB
testcase_05 AC 39 ms
24,000 KB
testcase_06 AC 38 ms
23,728 KB
testcase_07 AC 39 ms
24,312 KB
testcase_08 AC 39 ms
24,336 KB
testcase_09 AC 38 ms
23,892 KB
testcase_10 AC 38 ms
23,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print('? 100', flush=True)
a = int(input())
if a == 99:
    print('! 99 100', flush=True)
    exit()
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