結果
問題 | No.2323 Nafmo、A+Bをする |
ユーザー |
|
提出日時 | 2023-04-22 16:58:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 330 bytes |
コンパイル時間 | 2,035 ms |
コンパイル使用メモリ | 192,524 KB |
最終ジャッジ日時 | 2025-02-12 13:06:04 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main(){ios::sync_with_stdio(false);cin.tie(nullptr);string a, b; cin >> a >> b;int x = 0, y = 0;for(auto c : a){x *= 2;x += c - '0';}for(auto c : b){y *= 2;y += c - '0';}cout << (x ^ y) << endl;}