結果
問題 |
No.2323 Nafmo、A+Bをする
|
ユーザー |
![]() |
提出日時 | 2023-06-18 00:13:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 212 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-25 13:16:10 |
合計ジャッジ時間 | 1,403 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 17 |
ソースコード
A = input() B = input() N = (len(A) if(len(A)>len(B)) else len(B)) A = A.zfill(N) B = B.zfill(N) ans = '' for i in range(N): if(A[i]==B[i]):ans = ans+'0' else:ans = ans + '1' print(ans) print(int(ans,2))