結果
| 問題 |
No.2323 Nafmo、A+Bをする
|
| コンテスト | |
| ユーザー |
ozraru
|
| 提出日時 | 2023-05-28 13:38:44 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 2,000 ms |
| コード長 | 640 bytes |
| コンパイル時間 | 2,048 ms |
| コンパイル使用メモリ | 192,816 KB |
| 最終ジャッジ日時 | 2025-02-13 10:03:19 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
#include <numeric>
// #include <atcoder/modint>
using namespace std;
// using namespace atcoder;
// using mint = modint998244353;
#define i64 int_fast64_t
const i64 INF = INT64_MAX;
const i64 ERR = INT64_MIN;
const i64 MOD = 998244353;
// 切り上げ
i64 ceil_devide(i64 x, i64 y) {
return (x + y - 1) / y;
}
// 切り捨て
i64 floor_devide(i64 x, i64 y) {
return x / y;
}
i64 sum_linear(i64 n) {
return n * (n+1) / 2;
}
int main()
{
string A,B;
cin >> A >> B;
size_t a,b;
a = stoi(A, nullptr, 2);
b = stoi(B, nullptr, 2);
cout << (a ^ b) << endl;
return 0;
}
ozraru