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