結果

問題 No.8063 幅優先探索
ユーザー zelnyokzelnyok
提出日時 2020-04-01 22:25:45
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 927 bytes
コンパイル時間 834 ms
コンパイル使用メモリ 91,904 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 11:36:11
合計ジャッジ時間 1,337 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream> // cin, cout, cerr
#include <algorithm> // minmax, sort, swap
#include <numeric> // iota
#include <cstdio> // printf, scanf
#include <string> // string, stoi, to_string
#include <vector> // vector
#include <queue> // queue, priority_queue
#include <deque> // deque
#include <map> // key-value pairs sorted by keys
#include <set> // set
#include <iomanip> // cout<<setprecision(n)
#include <functional> // function<void(int)>
#include <cmath>
#include <cassert>
#include <bitset>

#ifdef DEBUG
#include "debug.hpp"
#else
#define debug(...)
#endif

#define int long long // at least int64 > 9*10^18
#define EL '\n'
#define rep(i,n) for(int i = 0; i < (n); i++)
#define print(i) std::cout << (i) << '\n'
#define all(v) (v).begin(), (v).end()
/* libraries */

signed main() {
	int x;
	std::cin >> x;
	std::cin >> x;
	int a,b,c,d;
	std::cin >> a >> b >> c >> d;
	print(std::abs(a-c)+std::abs(b-d));
	return 0;
}
0