結果

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

ソースコード

diff #

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

int main(){
	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