結果
問題 | No.208 王将 |
ユーザー |
![]() |
提出日時 | 2015-05-15 22:39:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 456 bytes |
コンパイル時間 | 566 ms |
コンパイル使用メモリ | 72,388 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-09 16:18:18 |
合計ジャッジ時間 | 1,345 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
#include <iostream> #include <vector> #include <cstdio> #include <sstream> #include <map> #include <string> #include <algorithm> #include <queue> #include <cmath> #include <set> using namespace std; int main(){ long long x,y; cin >> x >> y; long long c,r; cin >> c >> r; long long ans = max(x,y); //if((x == c && x == 0 && r < y) || (y == r && y == 0 && c < x)) ans += 1; if( x==y && c==r && c < x ) ans += 1; cout << ans << endl; return 0; }