結果
問題 | No.2357 Guess the Function |
ユーザー | aaaaaaaaaa2230 |
提出日時 | 2023-06-24 17:30:21 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 103 ms / 1,000 ms |
コード長 | 300 bytes |
コンパイル時間 | 376 ms |
コンパイル使用メモリ | 87,072 KB |
実行使用メモリ | 87,400 KB |
平均クエリ数 | 2.91 |
最終ジャッジ日時 | 2023-09-14 13:04:48 |
合計ジャッジ時間 | 3,104 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 103 ms
87,296 KB |
testcase_01 | AC | 96 ms
86,728 KB |
testcase_02 | AC | 98 ms
87,316 KB |
testcase_03 | AC | 98 ms
87,224 KB |
testcase_04 | AC | 97 ms
87,316 KB |
testcase_05 | AC | 99 ms
87,400 KB |
testcase_06 | AC | 101 ms
86,944 KB |
testcase_07 | AC | 99 ms
87,240 KB |
testcase_08 | AC | 99 ms
87,364 KB |
testcase_09 | AC | 99 ms
86,744 KB |
testcase_10 | AC | 99 ms
86,552 KB |
ソースコード
import sys def out(x): print("?",x) sys.stdout.flush() return int(input()) x1 = 100 y1 = out(x1) if y1 == 99: print("!",y1,x1) else: x2 = 100-y1-1 y2 = out(x2) b = y2+1 for i in range(b): if (x2+i)%b == y2: print("!",i,b) exit()