結果
| 問題 | No.2357 Guess the Function |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-23 23:25:14 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 473 bytes |
| 記録 | |
| コンパイル時間 | 469 ms |
| コンパイル使用メモリ | 84,864 KB |
| 実行使用メモリ | 86,680 KB |
| 平均クエリ数 | 2.91 |
| 最終ジャッジ日時 | 2026-03-21 20:19:42 |
| 合計ジャッジ時間 | 2,259 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 9 RE * 1 |
ソースコード
import sys, time, random
from collections import deque, Counter, defaultdict
input = lambda: sys.stdin.readline().rstrip()
ii = lambda: int(input())
mi = lambda: map(int, input().split())
li = lambda: list(mi())
inf = 2 ** 63 - 1
mod = 998244353
print('?', 100, flush=True)
x = ii()
print('?', 100 - x - 1, flush=True)
y = ii()
b = y + 1
for a in range(0, b):
if (100 + a) % b == x and (100 - x - 1 + a) % b == y:
print('!', a, b, flush=True)
exit()