結果

問題 No.581 XOR
ユーザー yuasa0000yuasa0000
提出日時 2019-03-04 16:18:11
言語 C++11
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 181 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 54,724 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-23 13:32:56
合計ジャッジ時間 887 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 3 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

int main(){
    int A,C;
    std::cin >> A >> C;
    int B = A-C;
    if(B < 0){
        B += (B * (-2));
    }
    std::cout << B << std::endl;
    return 0;
}
0