Problem1700--计算两个复数之积

1700: 计算两个复数之积

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 0
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现一个计算复数之积的简单函数。 函数接口定义: struct complex multiply(struct complex x, struct complex y); 其中struct complex是复数结构体,其定义如下: struct complex{ int real; int imag; }; 裁判测试程序样例: #include struct complex{ int real; int imag; }; struct complex multiply(struct complex x, struct complex y); int main() { struct complex product, x, y; scanf(

Input

其中struct complex是复数结构体,其定义如下: struct complex{ int real; int imag; };

Output

输出两个复数的乘积

Sample Input Copy

3 4 5 6

Sample Output Copy

(3+4i) * (5+6i) = -9 + 38i

Source/Category

223