結果
| 問題 |
No.2357 Guess the Function
|
| コンテスト | |
| ユーザー |
とりゐ
|
| 提出日時 | 2023-06-27 00:25:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 242 bytes |
| コンパイル時間 | 180 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 83,200 KB |
| 平均クエリ数 | 2.64 |
| 最終ジャッジ日時 | 2024-07-03 19:14:40 |
| 合計ジャッジ時間 | 1,904 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 RE * 4 |
ソースコード
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
assert A!=-1
print('!',A,B)
とりゐ