結果
問題 | No.2357 Guess the Function |
ユーザー | Navier_Boltzmann |
提出日時 | 2023-06-23 22:13:14 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 140 ms / 1,000 ms |
コード長 | 337 bytes |
コンパイル時間 | 1,569 ms |
コンパイル使用メモリ | 86,364 KB |
実行使用メモリ | 89,156 KB |
平均クエリ数 | 2.91 |
最終ジャッジ日時 | 2023-09-13 17:14:25 |
合計ジャッジ時間 | 3,945 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 140 ms
88,932 KB |
testcase_01 | AC | 132 ms
88,688 KB |
testcase_02 | AC | 134 ms
88,288 KB |
testcase_03 | AC | 136 ms
88,572 KB |
testcase_04 | AC | 134 ms
88,928 KB |
testcase_05 | AC | 133 ms
89,156 KB |
testcase_06 | AC | 135 ms
88,428 KB |
testcase_07 | AC | 135 ms
88,244 KB |
testcase_08 | AC | 133 ms
88,440 KB |
testcase_09 | AC | 135 ms
88,720 KB |
testcase_10 | AC | 136 ms
88,780 KB |
ソースコード
from collections import * from functools import * from itertools import * from heapq import * import sys,math input = sys.stdin.readline print('? 100',flush=True) y = int(input()) if y==99: print('! 99 100') exit() print(f'? {99-y}',flush=True) B = int(input())+1 now = y while now < 100: now += B A = now-100 print('!',A,B)