結果

問題 No.2357 Guess the Function
ユーザー 👑 hitonanodehitonanode
提出日時 2023-06-23 22:41:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 1,000 ms
コード長 197 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 10,676 KB
実行使用メモリ 24,324 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-13 17:45:38
合計ジャッジ時間 1,468 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
23,480 KB
testcase_01 AC 37 ms
23,908 KB
testcase_02 AC 35 ms
24,228 KB
testcase_03 AC 37 ms
24,324 KB
testcase_04 AC 37 ms
24,228 KB
testcase_05 AC 38 ms
23,324 KB
testcase_06 AC 36 ms
24,168 KB
testcase_07 AC 36 ms
24,264 KB
testcase_08 AC 36 ms
23,568 KB
testcase_09 AC 37 ms
23,952 KB
testcase_10 AC 38 ms
23,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 100")
y = int(input())
if y == 99:
    print("! 99 100")
else:
    print("? {}".format(100 - y - 1))
    z = int(input())
    print("! {} {}".format((z - (100 - y - 1)) % (z + 1), z + 1))
0