結果
| 問題 | No.208 王将 |
| コンテスト | |
| ユーザー |
hanorver
|
| 提出日時 | 2015-10-16 21:55:53 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 72,804 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-08-22 06:55:19 |
| 合計ジャッジ時間 | 2,669 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 WA * 2 |
ソースコード
#include<iostream>
#include<algorithm>
int main() {
int gx, gy, ex, ey;
std::cin >> gx >> gy >> ex >> ey;
int ans = 0;
if (gx == gy && ex == ey)ans++;
ans += std::max(gx, gy);
std::cout << ans << std::endl;
return 0;
}
hanorver