結果

問題 No.3057 A xor B = C
ユーザー a163236a163236
提出日時 2020-04-01 21:26:33
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 1,696 ms
コンパイル使用メモリ 164,900 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-09 15:22:03
合計ジャッジ時間 2,033 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define _LIBCPP_DEBUG 0
using namespace std;
typedef long long int ll;
ll MOD = 1e9 + 7;
int INF = 1 << 30;


int main(void){

    string A,B; cin>>A>>B;
    ll size = max(A.length(), B.length());
    for (ll i = 0; i < size; ++i) {
        cout<<((A[i]-'0') ^ (B[i]-'0'));
    }
    cout<<endl;
    return 0;
}
0