結果
問題 | No.3057 A xor B = C |
ユーザー | Strorkis |
提出日時 | 2020-04-01 21:29:05 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 535 ms |
コンパイル使用メモリ | 65,596 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-09-09 15:46:03 |
合計ジャッジ時間 | 987 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
ソースコード
#include <iostream> #include <string> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); string A, B; cin >> A >> B; if (A.size() < B.size()) swap(A, B); string S(A.size()-B.size(), '0'); B = S + B; for (int i = 0; i < A.size(); i++) cout << (A[i] == B[i] ? 0 : 1); cout << "\n"; }