結果
問題 |
No.208 王将
|
ユーザー |
![]() |
提出日時 | 2016-04-22 17:55:06 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 234 bytes |
コンパイル時間 | 1,158 ms |
コンパイル使用メモリ | 157,440 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-04 15:06:22 |
合計ジャッジ時間 | 1,985 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 WA * 2 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i,a,b) for(int i=a;i<b;i++) int main() { int x, y; cin >> x >> y; int x2, y2; cin >> x2 >> y2; int ans = max(x, y); if (x == y && x2 == y2) ans++; cout << ans << endl; }