結果
| 問題 | No.3018 目隠し宝探し |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-09-12 05:45:39 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 272 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 96,232 KB |
| 実行使用メモリ | 91,264 KB |
| 平均クエリ数 | 2.23 |
| 最終ジャッジ日時 | 2026-07-15 00:20:19 |
| 合計ジャッジ時間 | 4,346 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 20 RE * 1 |
ソースコード
h,w=map(int,input().split())
print('?',1,1,flush=True)
x=int(input())
print('?',h,1,flush=True)
y=int(input())
for i in range(1,h+1):
for j in range(1,w+1):
a=(i-1)*(i-1)+(j-1)*(j-1)
b=(i-1)*(i-1)+(j-w)*(j-w)
if x==a and b==y:
print('!',a,b,flush=True)
exit()