結果
問題 |
No.2323 Nafmo、A+Bをする
|
ユーザー |
|
提出日時 | 2023-05-28 13:38:26 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 311 bytes |
コンパイル時間 | 1,698 ms |
コンパイル使用メモリ | 191,688 KB |
最終ジャッジ日時 | 2025-02-13 10:02:52 |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 11 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int a, b; cin >> a >> b; int ans = 0, two = 1; while (a || b) { if (!(a % 10 == b % 10)) { ans += two; } a /= 10; b /= 10; two *= 2; } cout << ans << endl; return 0; }