結果
問題 | No.8063 幅優先探索 |
ユーザー | pockyny |
提出日時 | 2020-04-01 21:51:37 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 190 bytes |
コンパイル時間 | 1,519 ms |
コンパイル使用メモリ | 77,044 KB |
最終ジャッジ日時 | 2025-01-09 11:55:35 |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 9 |
ソースコード
#include <iostream> #include <cmath> using namespace std; int main(){ int r,c,sy,sx,gy,gx; cin >> r >> c >> sy >> sx >> gy >> gx; cout << abs(sy - gy) + abs(sx - gx) << endl; }