結果

問題 No.2323 Nafmo、A+Bをする
ユーザー eizieizi
提出日時 2023-05-28 13:44:05
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 350 bytes
コンパイル時間 2,295 ms
コンパイル使用メモリ 200,720 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-08 04:01:30
合計ジャッジ時間 4,450 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,816 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 2 ms
6,940 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,944 KB
testcase_05 AC 2 ms
6,940 KB
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 2 ms
6,944 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#define rep(i, n) for (int i = 0; i < (n); i++)
using ll = unsigned long long;
using Graph = vector<vector<int>>;

int main()
{
    int a, b;
    cin >> a >> b;
    string a_s = to_string(a), b_s = to_string(b);
    a = stoi(a_s, 0, 2);
    b = stoi(b_s, 0, 2);
    a = (a ^ b);
    cout << a << endl;
}
0