結果

問題 No.2357 Guess the Function
ユーザー titiatitia
提出日時 2023-06-23 22:14:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 584 bytes
コンパイル時間 362 ms
コンパイル使用メモリ 10,960 KB
実行使用メモリ 24,428 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-13 17:15:47
合計ジャッジ時間 1,661 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
23,944 KB
testcase_01 AC 39 ms
24,320 KB
testcase_02 AC 40 ms
24,152 KB
testcase_03 AC 41 ms
24,156 KB
testcase_04 AC 41 ms
24,240 KB
testcase_05 AC 39 ms
23,864 KB
testcase_06 AC 40 ms
24,340 KB
testcase_07 AC 39 ms
24,076 KB
testcase_08 AC 40 ms
24,428 KB
testcase_09 AC 40 ms
24,080 KB
testcase_10 AC 40 ms
24,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("?",100,flush=True)
x=int(input())
X=[99, 97, 95, 93, 91, 89, 87, 85, 83, 81, 79, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 57, 55, 53, 51, 49, 47, 45, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 17, 15, 13, 11, 9, 7, 5, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
print("?",X[x],flush=True)
y=int(input())

for A in range(101):
    for B in range(A+1,101):
        if (100+A)%B==x and (X[x]+A)%B==y:
            print("!",A,B,flush=True)
            exit()
0