結果

問題 No.1412 Super Ryuo
ユーザー keisuke6keisuke6
提出日時 2022-07-12 22:14:20
言語 C++23
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 250 bytes
コンパイル時間 5,726 ms
コンパイル使用メモリ 240,304 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-06 01:12:02
合計ジャッジ時間 4,295 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
  int A,B,C,D;
  cin>>A>>B>>C>>D;
  if(A == C || B == D) cout<<0<<endl;
  else if((abs(A-C)+abs(B-D) <= 3)||(A == C || B == D)) cout<<1<<endl;
  else cout<<2<<endl;
}
0