結果
問題 | No.8063 幅優先探索 |
ユーザー |
|
提出日時 | 2020-04-01 23:08:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 311 bytes |
コンパイル時間 | 1,561 ms |
コンパイル使用メモリ | 166,456 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-27 12:32:35 |
合計ジャッジ時間 | 2,278 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int r, c; int sx, sy, gx, gy; cin >> r >> c; cin >> sy >> sx; cin >> gy >> gx; for(int i=0;i<r;i++) for(int i=0;i<c;i++) { char c; cin >> c; } cout << abs(sy - gy) + abs(sx - gx) << endl; return 0; }