結果

問題 No.2323 Nafmo、A+Bをする
ユーザー ああいい
提出日時 2023-06-01 08:39:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 438 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-12-28 14:32:37
合計ジャッジ時間 1,973 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

A = input()
B = input()
A = A[::-1]
B = B[::-1]

ans = 0
for i in range(50):
	if len(A) > i:
		a = int(A[i])
	else:
		a = 0
	if len(B) > i:
		b = int(B[i])
	else:
		b = 0
	ans |= (a ^ b) << i
print(ans)
0