結果
問題 | No.208 王将 |
ユーザー |
![]() |
提出日時 | 2015-06-08 18:28:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 845 bytes |
コンパイル時間 | 681 ms |
コンパイル使用メモリ | 90,092 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 14:48:52 |
合計ジャッジ時間 | 1,453 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 WA * 6 |
ソースコード
#include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmath> #include <cstdlib> #include <cctype> #include <string> #include <cstring> #include <ctime> #include <fstream> #include <queue> #include <complex> #define INF_MIN 100000000 #define INF 1145141919 #define INF_MAX 2147483647 #define LL_MAX 9223372036854775807 #define EPS 1e-10 #define PI acos(-1) #define LL long long using namespace std; int x, y; int xx1, yy1; int main(){ cin >> x >> y; cin >> xx1 >> yy1; int ans = max(x, y); if(x == y && xx1 == yy1 && x*xx1 > 0 && y*yy1 > 0){ ans += 2; } cout << ans << endl; return 0; }