結果
| 問題 |
No.208 王将
|
| コンテスト | |
| ユーザー |
kiyunetsubamna
|
| 提出日時 | 2015-06-25 16:01:19 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| コンパイル時間 | 443 ms |
| コンパイル使用メモリ | 53,836 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 17:34:19 |
| 合計ジャッジ時間 | 1,115 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 2 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int x;
int y;
int x2;
int y2;
int a;
cin >> x;
cin >> y;
cin >> x2;
cin >> y2;
if (x != y){
if (x > y){
cout << x << endl;
}
else{
cout << y << endl;
}
}
else{
if (x2 == y2){
cout << x + 1 << endl;
}
else{
cout << x << endl;
}
}
return 0;
}
kiyunetsubamna