結果
| 問題 |
No.3018 目隠し宝探し
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-02 02:50:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 296 bytes |
| コンパイル時間 | 498 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 76,544 KB |
| 平均クエリ数 | 2.45 |
| 最終ジャッジ日時 | 2025-02-02 02:51:04 |
| 合計ジャッジ時間 | 5,982 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 15 WA * 6 |
ソースコード
H,W=map(int,input().split())
if H==1 or W==1 : print("提出デバッグ中...")
else:
print("?",1,1)
d11=int(input())
print("?",1,2)
d12=int(input())
for i in range(H):
for j in range(W):
if i**2+j**2==d11 and i**2+(j-1)**2==d12 : exit(print("!",i+1,j+1))