結果
問題 | No.2357 Guess the Function |
ユーザー | Shirotsume |
提出日時 | 2023-06-23 23:25:14 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 473 bytes |
コンパイル時間 | 408 ms |
コンパイル使用メモリ | 87,216 KB |
実行使用メモリ | 98,252 KB |
平均クエリ数 | 2.91 |
最終ジャッジ日時 | 2023-09-13 18:35:24 |
合計ジャッジ時間 | 3,225 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 137 ms
90,848 KB |
testcase_01 | AC | 132 ms
90,752 KB |
testcase_02 | AC | 135 ms
91,076 KB |
testcase_03 | RE | - |
testcase_04 | AC | 134 ms
90,620 KB |
testcase_05 | AC | 131 ms
90,720 KB |
testcase_06 | AC | 134 ms
90,852 KB |
testcase_07 | AC | 133 ms
90,632 KB |
testcase_08 | AC | 135 ms
90,300 KB |
testcase_09 | AC | 135 ms
90,508 KB |
testcase_10 | AC | 134 ms
90,512 KB |
ソースコード
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()