結果
問題 |
No.3018 目隠し宝探し
|
ユーザー |
|
提出日時 | 2025-08-12 21:15:01 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 298 bytes |
コンパイル時間 | 617 ms |
コンパイル使用メモリ | 12,032 KB |
実行使用メモリ | 28,672 KB |
平均クエリ数 | 2.86 |
最終ジャッジ日時 | 2025-08-12 21:15:07 |
合計ジャッジ時間 | 6,075 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 17 RE * 4 |
ソースコード
h,w = map(int,input().split()) print('?',1,1) d1 = int(input()) print('?',h,w) dn = int(input()) for r in range(h): for c in range(w): if r**2 + c**2 == d1 and (h - r - 1) ** 2 + (w - c - 1) ** 2 == dn: print('?',r+1,c+1) d = int(input()) if d == 0: exit(print('!',r+1,c+1))