結果
問題 | No.2357 Guess the Function |
ユーザー | miya145592 |
提出日時 | 2023-06-23 23:39:05 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 99 ms / 1,000 ms |
コード長 | 215 bytes |
コンパイル時間 | 360 ms |
コンパイル使用メモリ | 87,060 KB |
実行使用メモリ | 87,924 KB |
平均クエリ数 | 2.91 |
最終ジャッジ日時 | 2023-09-13 18:48:40 |
合計ジャッジ時間 | 2,532 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 99 ms
87,028 KB |
testcase_01 | AC | 96 ms
87,144 KB |
testcase_02 | AC | 96 ms
87,252 KB |
testcase_03 | AC | 94 ms
87,176 KB |
testcase_04 | AC | 95 ms
87,348 KB |
testcase_05 | AC | 97 ms
87,320 KB |
testcase_06 | AC | 93 ms
87,100 KB |
testcase_07 | AC | 95 ms
87,692 KB |
testcase_08 | AC | 95 ms
87,208 KB |
testcase_09 | AC | 93 ms
86,880 KB |
testcase_10 | AC | 95 ms
87,924 KB |
ソースコード
x1 = 100 print(f"? {x1}", flush=True) y1 = int(input()) if y1==99: print(f"! 99 100") exit() x2 = x1 - y1 - 1 print(f"? {x2}", flush=True) y2 = int(input()) print(f"! {(y2-x2)%(y2+1)} {y2+1}" ,flush=True)