結果

問題 No.208 王将
ユーザー phspls
提出日時 2020-04-09 22:51:24
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 1,711 ms
コンパイル使用メモリ 166,976 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-14 00:27:19
合計ジャッジ時間 2,775 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define llong long long

int main() {
    llong x, y, x2, y2;
    cin >> x >> y >> x2 >> y2;

    if(x == y && x2 == y2 && x*x2 >= 0) {
        cout << x+1 << "\n";
    } else {
        cout << max(abs(x), abs(y)) << "\n";
    }
}
0