結果
問題 |
No.2357 Guess the Function
|
ユーザー |
|
提出日時 | 2023-06-23 23:25:14 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 473 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 82,052 KB |
実行使用メモリ | 84,848 KB |
平均クエリ数 | 2.91 |
最終ジャッジ日時 | 2024-07-01 03:13:38 |
合計ジャッジ時間 | 1,872 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()