結果
問題 |
No.1412 Super Ryuo
|
ユーザー |
![]() |
提出日時 | 2021-03-03 21:24:20 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 693 bytes |
コンパイル時間 | 712 ms |
コンパイル使用メモリ | 93,692 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-03 11:12:59 |
合計ジャッジ時間 | 1,318 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 |
ソースコード
/* -*- coding: utf-8 -*- * * 1412.cc: No.1412 Super Ryuo - yukicoder */ #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<iostream> #include<string> #include<vector> #include<map> #include<set> #include<stack> #include<list> #include<queue> #include<deque> #include<algorithm> #include<numeric> #include<utility> #include<complex> #include<functional> using namespace std; /* constant */ /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { ll a, b, c, d; scanf("%lld%lld%lld%lld", &a, &b, &c, &d); if (a == c || b == d || abs(c - a) + abs(d - b) <= 3) puts("1"); else puts("2"); return 0; }