結果
| 問題 |
No.3018 目隠し宝探し
|
| ユーザー |
👑 |
| 提出日時 | 2025-01-01 02:59:25 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 82,040 KB |
| 平均クエリ数 | 2.73 |
| 最終ジャッジ日時 | 2025-01-25 21:56:25 |
| 合計ジャッジ時間 | 2,268 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge10 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 WA * 5 RE * 1 |
ソースコード
H, W = map(int, input().split())
print("?", 1, 1)
d_1 = int(input())
print("?", 1, W)
d_2 = int(input())
for i in range(H):
for j in range(W):
if i**2 + j**2 == d_1 and i**2 + ((W - 1) - j)**2 == d_2:
print("!", i + 1, j + 1)
exit()