結果
問題 |
No.3018 目隠し宝探し
|
ユーザー |
👑 |
提出日時 | 2025-01-01 17:48:09 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 77,916 KB |
平均クエリ数 | 2.68 |
最終ジャッジ日時 | 2025-01-25 21:56:21 |
合計ジャッジ時間 | 1,847 ms |
ジャッジサーバーID (参考情報) |
judge9 / judge10 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 15 WA * 6 |
ソースコード
H, W = map(int, input().split()) print("?", 1, 1) d_1 = int(input()) if d_1 == -1: exit() print("?", 1, W) d_2 = int(input()) if d_2 == -1: exit() 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()