結果
| 問題 |
No.2357 Guess the Function
|
| コンテスト | |
| ユーザー |
ゼット
|
| 提出日時 | 2024-02-17 09:08:05 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 1,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 324 ms |
| コンパイル使用メモリ | 82,452 KB |
| 実行使用メモリ | 69,760 KB |
| 平均クエリ数 | 2.91 |
| 最終ジャッジ日時 | 2024-09-28 23:34:08 |
| 合計ジャッジ時間 | 1,652 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
print('?',100,flush=True)
y=int(input())
pos=y
if y==99:
print('!',99,100,flush=True)
exit()
z=100-y
print('?',z-1,flush=True)
y=int(input())
B=y+1
for x in range(B):
if (x+100)%B==pos:
A=x
break
print('!',A,B,flush=True)
ゼット