結果
問題 |
No.3018 目隠し宝探し
|
ユーザー |
👑 |
提出日時 | 2025-01-01 02:57:11 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 262 bytes |
コンパイル時間 | 414 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 81,792 KB |
平均クエリ数 | 2.00 |
最終ジャッジ日時 | 2025-01-25 21:56:09 |
合計ジャッジ時間 | 3,534 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge10 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 20 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, j) exit()