結果
問題 | No.1412 Super Ryuo |
ユーザー |
![]() |
提出日時 | 2023-09-04 03:47:05 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 442 bytes |
コンパイル時間 | 1,998 ms |
コンパイル使用メモリ | 192,876 KB |
最終ジャッジ日時 | 2025-02-16 18:33:29 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
#include <bits/stdc++.h> #include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> #include <iomanip> #include<set> #include <numeric> #include<string> using namespace std; int main() { long long a, b, c, d; cin >> a >> b >> c >> d; bool yes = false; c -= a; d -= b; if ((abs(c)+abs(d))<=3) yes = true; else if (c == 0 || d == 0) yes = true; cout << ((yes) ? 1 : 2) << endl; }