結果
問題 | No.2323 Nafmo、A+Bをする |
ユーザー |
|
提出日時 | 2023-05-28 13:49:11 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 35 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-12-26 21:58:29 |
合計ジャッジ時間 | 1,826 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 |
ソースコード
a=input()b=input()if len(a)>len(b):b=("0"*(len(a)-len(b)))+belse:a=("0"*(len(b)-len(a)))+aa=a[::-1]b=b[::-1]ans=0for i in range(len(a)):if a[i]==b[i]:ans+=0else:ans+=2**iprint(ans)