結果
| 問題 |
No.2323 Nafmo、A+Bをする
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-29 19:16:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 242 bytes |
| コンパイル時間 | 606 ms |
| コンパイル使用メモリ | 69,068 KB |
| 最終ジャッジ日時 | 2025-02-13 16:08:22 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
#include <iostream>
#include <string>
#include <bitset>
using namespace std;
int main(void){
string s, t;
cin >> s >> t;
bitset<30> a(s);
bitset<30> b(t);
unsigned long ans = (a ^ b).to_ulong();
cout << ans << endl;
}