結果
問題 | No.2323 Nafmo、A+Bをする |
ユーザー |
|
提出日時 | 2023-05-10 14:19:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 13 ms / 2,000 ms |
コード長 | 219 bytes |
コンパイル時間 | 1,974 ms |
コンパイル使用メモリ | 194,244 KB |
最終ジャッジ日時 | 2025-02-12 21:11:11 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main(){ string S,T; cin>>S>>T; int A=stoi(S,nullptr,2); int B=stoi(T,nullptr,2); assert(0<=A&&A<(1<<30)); assert(0<=B&&B<(1<<30)); int ans=A^B; cout<<ans<<endl; }