結果
| 問題 |
No.2323 Nafmo、A+Bをする
|
| コンテスト | |
| ユーザー |
shobonvip
|
| 提出日時 | 2023-05-28 13:32:37 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 4,179 ms |
| コンパイル使用メモリ | 250,792 KB |
| 最終ジャッジ日時 | 2025-02-13 09:48:44 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include<bits/stdc++.h>
#include<atcoder/all>
using namespace std;
using namespace atcoder;
typedef modint998244353 mint;
typedef long long ll;
int main(){
string a; cin >> a;
string b; cin >> b;
int x = 0, y = 0;
for (int i=0; i<(int)a.size(); i++){
x *= 2;
x += a[i] - '0';
}
for (int i=0; i<(int)b.size(); i++){
y *= 2;
y += b[i] - '0';
}
int z = x ^ y;
cout << z << endl;
}
shobonvip