結果

問題 No.2357 Guess the Function
ユーザー hir355hir355
提出日時 2023-06-23 21:56:01
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 101 ms / 1,000 ms
コード長 277 bytes
コンパイル時間 298 ms
コンパイル使用メモリ 86,868 KB
実行使用メモリ 87,492 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-13 16:57:13
合計ジャッジ時間 2,440 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
87,348 KB
testcase_01 AC 93 ms
87,336 KB
testcase_02 AC 93 ms
87,416 KB
testcase_03 AC 91 ms
87,492 KB
testcase_04 AC 94 ms
87,384 KB
testcase_05 AC 92 ms
87,300 KB
testcase_06 AC 92 ms
87,476 KB
testcase_07 AC 93 ms
86,952 KB
testcase_08 AC 94 ms
87,172 KB
testcase_09 AC 94 ms
87,232 KB
testcase_10 AC 93 ms
87,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print('?', 100)
y = int(input())
if y == 99:
    print('!', 99, 100)
else:
    print('?', 100 - y - 1)
    y2 = int(input())
    b = y2 + 1
    for a in range(0, 100):
        if (a + 100) % b == y and (a + 100 - y - 1) % b == y2:
            print('!', a, b)
            break
0