結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2015-10-16 21:52:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 220 bytes |
コンパイル時間 | 983 ms |
コンパイル使用メモリ | 56,452 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-21 18:39:43 |
合計ジャッジ時間 | 1,337 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 18 WA * 5 |
ソースコード
#include<iostream> #include<algorithm> int main() { int gx, gy, ex, ey; std::cin >> gx >> gy >> ex >> ey; int ans = 0; if (ex == ey)ans++; ans += std::max(gx, gy); std::cout << ans << std::endl; return 0; }