結果

問題 No.1412 Super Ryuo
ユーザー KKT89KKT89
提出日時 2021-03-03 18:55:05
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 2,611 ms
コンパイル使用メモリ 197,012 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-04-14 10:45:51
合計ジャッジ時間 3,394 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 2 ms
6,816 KB
testcase_02 AC 1 ms
6,816 KB
testcase_03 AC 1 ms
6,820 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 2 ms
6,940 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 2 ms
6,940 KB
testcase_09 WA -
testcase_10 AC 2 ms
6,940 KB
testcase_11 AC 1 ms
6,944 KB
testcase_12 AC 1 ms
6,944 KB
testcase_13 AC 2 ms
6,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long ull;

mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll myRand(ll B) {
    return (ull)rng() % B;
}
int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int x,y,xx,yy; cin >> x >> y >> xx >> yy;
	if(abs(x-xx)+abs(y-yy)<=3 or x==xx or yy==y)printf("1\n");
	else printf("2\n");
}
0