結果

問題 No.2323 Nafmo、A+Bをする
ユーザー taku-1227
提出日時 2023-05-28 15:14:29
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 1,993 ms
コンパイル使用メモリ 166,688 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-27 05:28:23
合計ジャッジ時間 2,330 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 WA * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;

int main(){
	long long unsigned int A, B, C;
  	cin >> A >> B;
  	C = A + B;
    string D = to_string(C);
  	for(int i = 0; i < D.size(); i++){
    if(D.at(i) == '2') D.at(i) = '0';
    }
  	C = stoi(D, 0, 2);
  	cout << C << endl;
}
0