結果
問題 |
No.3018 目隠し宝探し
|
ユーザー |
|
提出日時 | 2025-09-12 05:45:39 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 272 bytes |
コンパイル時間 | 486 ms |
コンパイル使用メモリ | 82,284 KB |
実行使用メモリ | 82,308 KB |
平均クエリ数 | 2.23 |
最終ジャッジ日時 | 2025-09-12 05:45:46 |
合計ジャッジ時間 | 5,553 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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()