結果

問題 No.2357 Guess the Function
ユーザー とりゐとりゐ
提出日時 2023-06-27 00:29:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 426 ms
コンパイル使用メモリ 86,996 KB
実行使用メモリ 95,276 KB
平均クエリ数 2.91
最終ジャッジ日時 2023-09-16 19:58:07
合計ジャッジ時間 2,916 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
87,512 KB
testcase_01 WA -
testcase_02 AC 96 ms
87,168 KB
testcase_03 RE -
testcase_04 AC 96 ms
87,508 KB
testcase_05 WA -
testcase_06 AC 97 ms
86,904 KB
testcase_07 AC 95 ms
87,056 KB
testcase_08 WA -
testcase_09 AC 98 ms
87,468 KB
testcase_10 AC 93 ms
87,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

x1=100
print('?',x1,flush=True)
y1=int(input())

x2=99-y1
print('?',x2,flush=True)
y2=int(input())

'''
y1=(100+A)%B
y2=(x2+A)%B=(99-y1+A)%B=(-1)%B
'''

B=y2+1
A=-1
for i in range(1,B):
  if (100+i)%B==y1:
    A=i

print('!',A,B)
0