結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
たこし
|
| 提出日時 | 2015-06-08 18:29:40 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 856 bytes |
| 記録 | |
| コンパイル時間 | 666 ms |
| コンパイル使用メモリ | 90,608 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 14:48:55 |
| 合計ジャッジ時間 | 1,459 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 WA * 4 |
ソースコード
#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 && x > xx1){
ans += 2;
}
cout << ans << endl;
return 0;
}
たこし