結果

問題 No.2357 Guess the Function
ユーザー aoblue2547aoblue2547
提出日時 2023-06-24 09:51:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 1,000 ms
コード長 201 bytes
コンパイル時間 87 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 24,240 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-14 05:20:46
合計ジャッジ時間 2,057 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
23,364 KB
testcase_01 AC 39 ms
23,440 KB
testcase_02 AC 39 ms
23,748 KB
testcase_03 AC 39 ms
23,484 KB
testcase_04 AC 39 ms
23,556 KB
testcase_05 AC 39 ms
23,580 KB
testcase_06 AC 40 ms
23,376 KB
testcase_07 AC 39 ms
24,240 KB
testcase_08 AC 39 ms
23,928 KB
testcase_09 AC 39 ms
23,688 KB
testcase_10 AC 40 ms
23,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 100")

x = int(input())

a = 99
b = 100

if x != 99:
  print("?",100-x-1)
  b = int(input()) + 1
  a = 0
  for i in range(0,101):
    if (i+100)%b == x:
      a = i
      break

print("!",a,b)
0