結果
問題 | No.2357 Guess the Function |
ユーザー | Shirotsume |
提出日時 | 2023-06-23 22:49:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 139 ms / 1,000 ms |
コード長 | 594 bytes |
コンパイル時間 | 287 ms |
コンパイル使用メモリ | 87,104 KB |
実行使用メモリ | 90,700 KB |
平均クエリ数 | 2.91 |
最終ジャッジ日時 | 2023-09-13 17:56:11 |
合計ジャッジ時間 | 2,862 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 139 ms
89,732 KB |
testcase_01 | AC | 139 ms
90,540 KB |
testcase_02 | AC | 138 ms
90,700 KB |
testcase_03 | AC | 138 ms
90,596 KB |
testcase_04 | AC | 137 ms
90,044 KB |
testcase_05 | AC | 134 ms
90,168 KB |
testcase_06 | AC | 136 ms
90,044 KB |
testcase_07 | AC | 136 ms
90,360 KB |
testcase_08 | AC | 134 ms
90,016 KB |
testcase_09 | AC | 135 ms
90,428 KB |
testcase_10 | AC | 136 ms
89,972 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() if 100 - x - 1 == 0: b = 100 a = 99 print('!', a, b, flush=True) exit() else: 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()