結果

問題 No.2239 Friday
コンテスト
ユーザー vjudge1
提出日時 2025-11-20 15:59:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 510 bytes
コンパイル時間 818 ms
コンパイル使用メモリ 81,172 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-11-20 15:59:22
合計ジャッジ時間 1,617 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <unordered_map>
#include <algorithm>
#include <vector>

using namespace std;
int main()
{
    int x, y, answer(0),natural(0),unnatural(0);

    cin >> x >> y;

        int temp_2,temp_3;
        if(x < y){
            temp_2= x*2;
        }
        else if(y < x){
            temp_2 = y*2;
        }

        temp_3 = abs(x-y);

        answer = abs(temp_2 - temp_3);
    
        if(x == y){
            answer = 0;
        }

    cout<<answer;

    return 0;
}
0