結果
| 問題 |
No.2323 Nafmo、A+Bをする
|
| コンテスト | |
| ユーザー |
ozraru
|
| 提出日時 | 2023-05-28 13:38:27 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 676 bytes |
| コンパイル時間 | 1,816 ms |
| コンパイル使用メモリ | 193,052 KB |
| 最終ジャッジ日時 | 2025-02-13 10:02:59 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 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;
cout << (a ^ b) << endl;
return 0;
}
ozraru