結果
| 問題 | No.3018 目隠し宝探し |
| コンテスト | |
| ユーザー |
kazuppa
|
| 提出日時 | 2025-02-07 17:01:17 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 331 ms / 2,000 ms |
| + 999µs | |
| コード長 | 356 bytes |
| 記録 | |
| コンパイル時間 | 82 ms |
| コンパイル使用メモリ | 64,556 KB |
| 実行使用メモリ | 53,520 KB |
| 平均クエリ数 | 2.70 |
| 最終ジャッジ日時 | 2026-11-01 00:07:39 |
| 合計ジャッジ時間 | 3,982 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 22 |
ソースコード
h,w=map(int, input().split())
if h==w==1:
print("!",1,1)
elif h==1:
print("?",1,1)
d=int(input())
print("!",h,int(d**(1/2))+1)
elif w==1:
print("?",1,1)
d=int(input())
print("!",int(d**(1/2))+1, w)
else:
print("?",1,1)
d1=int(input())
print("?",1,w)
d2=int(input())
x=(w**2+d1-d2)//(2*w-2)
print("!",1+int((d1-(x-1)**2)**(1/2)),x)
kazuppa