結果

問題 No.1412 Super Ryuo
ユーザー kotatsugamekotatsugame
提出日時 2021-02-28 21:21:43
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 161 bytes
コンパイル時間 687 ms
コンパイル使用メモリ 66,592 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-12 10:20:53
合計ジャッジ時間 1,452 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 WA -
testcase_04 AC 2 ms
6,944 KB
testcase_05 AC 2 ms
6,940 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 2 ms
6,940 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 2 ms
6,940 KB
testcase_12 AC 2 ms
6,940 KB
testcase_13 AC 2 ms
6,944 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
#include<algorithm>
using namespace std;
int A,B,C,D;
main()
{
	cin>>A>>B>>C>>D;
	cout<<(A==C||B==D||(long)abs(A-B)+abs(C-D)<=3?1:2)<<endl;
}
0