結果

問題 No.2323 Nafmo、A+Bをする
ユーザー rts_tatsurts_tatsu
提出日時 2023-05-28 14:05:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 232 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,732 KB
実行使用メモリ 8,316 KB
最終ジャッジ日時 2023-08-27 08:59:58
合計ジャッジ時間 1,439 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,776 KB
testcase_01 AC 16 ms
8,188 KB
testcase_02 AC 16 ms
7,836 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 16 ms
7,780 KB
testcase_06 AC 15 ms
8,084 KB
testcase_07 AC 16 ms
8,128 KB
testcase_08 AC 16 ms
7,948 KB
testcase_09 AC 15 ms
8,204 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

a=input()
b=input()
if len(a)>len(b):
    n=len(a)
else:
    n=len(b)
a=a.zfill(n)
b=b.zfill(n)

for i in range(len(a))[::-1]:

    if int(a[i])==1 and int(b[i])==1:
        print(0)
        exit()
print(int('0b'+a,2)+int('0b'+b,2))
0