結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
koyumeishi
|
| 提出日時 | 2015-05-15 22:33:50 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 626 ms |
| コンパイル使用メモリ | 97,132 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-27 14:34:52 |
| 合計ジャッジ時間 | 1,394 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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