結果

問題 No.2323 Nafmo、A+Bをする
ユーザー Ekiben542Ekiben542
提出日時 2023-05-28 13:58:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 196 bytes
コンパイル時間 590 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-08-27 08:44:53
合計ジャッジ時間 2,705 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,364 KB
testcase_01 AC 71 ms
71,644 KB
testcase_02 AC 71 ms
71,448 KB
testcase_03 AC 71 ms
71,400 KB
testcase_04 AC 72 ms
71,280 KB
testcase_05 AC 70 ms
71,464 KB
testcase_06 AC 69 ms
71,172 KB
testcase_07 AC 71 ms
71,400 KB
testcase_08 AC 71 ms
71,568 KB
testcase_09 AC 70 ms
71,344 KB
testcase_10 AC 71 ms
71,284 KB
testcase_11 AC 70 ms
71,352 KB
testcase_12 AC 69 ms
71,388 KB
testcase_13 AC 70 ms
71,456 KB
testcase_14 AC 71 ms
71,492 KB
testcase_15 AC 68 ms
71,536 KB
testcase_16 AC 70 ms
71,532 KB
testcase_17 AC 71 ms
71,324 KB
testcase_18 AC 71 ms
71,484 KB
testcase_19 AC 71 ms
71,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = input()
B = input()
incorrect_sum = ''
for a, b in zip(A.zfill(max(len(A), len(B))), B.zfill(max(len(A), len(B)))):
    incorrect_sum += str((int(a) + int(b)) % 2)
print(int(incorrect_sum, 2))
0