結果

問題 No.2357 Guess the Function
ユーザー rlangevinrlangevin
提出日時 2023-06-26 12:19:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 1,000 ms
コード長 230 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 87,736 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-16 05:26:57
合計ジャッジ時間 2,307 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
87,236 KB
testcase_01 AC 94 ms
87,352 KB
testcase_02 AC 94 ms
87,420 KB
testcase_03 AC 94 ms
87,524 KB
testcase_04 AC 94 ms
87,464 KB
testcase_05 AC 93 ms
87,736 KB
testcase_06 AC 93 ms
87,364 KB
testcase_07 AC 92 ms
87,176 KB
testcase_08 AC 92 ms
87,276 KB
testcase_09 AC 94 ms
87,116 KB
testcase_10 AC 93 ms
87,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

print("? 100")
sys.stdout.flush()
r = int(input())
if r == 99:
    print("! 99 100")
    exit()
print("? {}".format(100 - r - 1))
sys.stdout.flush()
B = int(input()) + 1
A = (r - 100) % B
print("! {} {}".format(A, B))
0