結果

問題 No.8063 幅優先探索
ユーザー 沙耶花沙耶花
提出日時 2020-04-01 22:17:38
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 796 ms
コンパイル使用メモリ 74,276 KB
最終ジャッジ日時 2025-01-09 12:09:39
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <set>
#include <queue>
#include <vector>
using namespace std;


int main() {

	int R,C;
	cin>>R>>C;
	
	int sx,sy,gx,gy;
	cin>>sx>>sy>>gx>>gy;;
	
	cout<<abs(sx-gx)+abs(sy-gy)<<endl;

    return 0;


}
0