結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2015-05-15 22:33:50 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 541 ms |
| コンパイル使用メモリ | 72,644 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 04:06:11 |
| 合計ジャッジ時間 | 1,143 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 2 |
ソースコード
#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(){
int x,y;
cin >> x >> y;
int c,r;
cin >> c >> r;
int ans = max(x,y);
if((x == c && x == 0 && r < y) || (y == r && y == 0 && c < x)) ans += 1;
else if( x==y && c==r && c < x ) ans += 1;
cout << ans << endl;
return 0;
}
koyumeishi