leetcode537】的更多相关文章

Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the definition. Example 1: Input: "1+1i", "1+1i" Output: "0+2i" Explanation: (1 + i)…
public class Solution { public string ComplexNumberMultiply(string a, string b) { var aryA = a.Split('+'); var aryB = b.Split('+'); ]); ].Substring(, aryA[].Length - )); ]); ].Substring(, aryB[].Length - )); var shi1 = shiA * shiB; ); var shi = shi1…
537. 复数乘法 537. Complex Number Multiplication 题目描述 Given two strings representing two complex numbers. You need to return a string representing their multiplication. Note i2 = -1 according to the definition. LeetCode537. Complex Number Multiplication中…