結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
a
|
| 提出日時 | 2015-05-15 22:57:58 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 242 bytes |
| 記録 | |
| コンパイル時間 | 118 ms |
| コンパイル使用メモリ | 39,188 KB |
| 実行使用メモリ | 7,712 KB |
| 最終ジャッジ日時 | 2026-03-27 14:43:40 |
| 合計ジャッジ時間 | 1,001 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 2 |
ソースコード
#include <cstdio>
using namespace std;
int main(void)
{
int a,b,c,d; scanf("%d%d%d%d",&a,&b,&c,&d);
int res = 0;
if( a == b && c == d ) {
res = a+1;
} else {
if(a<b)res=b; else res=a;
}
printf("%d\n",res);
return 0;
}
a