結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2015-10-23 15:55:02 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 258 bytes |
コンパイル時間 | 607 ms |
コンパイル使用メモリ | 60,876 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-22 11:32:51 |
合計ジャッジ時間 | 1,386 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 2 |
ソースコード
#include <iostream> #include <algorithm> #include <stdlib.h> #include <string> #include <queue> using namespace std; int main() { int gx,gy,jy,jx; cin>>gx>>gy; cin>>jx>>jy; int ans=max(gx,gy); if(gx==gy && jx==jy) ans++; cout<<ans<<endl; return 0; }