結果
問題 | No.208 王将 |
ユーザー |
![]() |
提出日時 | 2015-06-08 18:30:21 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 853 bytes |
コンパイル時間 | 726 ms |
コンパイル使用メモリ | 89,832 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 16:24:13 |
合計ジャッジ時間 | 1,491 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#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++; } cout << ans << endl; return 0; }