当前位置:网站首页>Leetcode 537. 复数乘法(网友思路,自愧不如)
Leetcode 537. 复数乘法(网友思路,自愧不如)
2022-07-26 01:18:00 【我不是萧海哇~~~~】

复数 可以用字符串表示,遵循 “实部+虚部i” 的形式,并满足下述条件:
- 实部 是一个整数,取值范围是 [-100, 100]
- 虚部 也是一个整数,取值范围是 [-100, 100]
- i2 == -1
给你两个字符串表示的复数 num1 和 num2 ,请你遵循复数表示形式,返回表示它们乘积的字符串。
示例 1:
输入:num1 = "1+1i", num2 = "1+1i"
输出:"0+2i"
解释:(1 + i) * (边栏推荐
猜你喜欢

ZK-Rollups工作原理

How can I become an irreplaceable programmer?

Arthas watch 命令查看数组中对象的属性

FreeBSD bNXT Ethernet driver source code reading record 2:

Docker高级篇-Mysql主从复制

【数据挖掘】生成模型和判别模型的区别及优缺点
![[RTOS training camp] learn C language from a higher perspective](/img/4c/bbbec489abb781a1de1e99bbf12c6f.png)
[RTOS training camp] learn C language from a higher perspective

换ip软件的用途很广及原理 动态IP更换的四种方法来保护网络隐私
![[RTOS training camp] course learning methods and structural knowledge review + linked list knowledge](/img/d1/96bdcdb1ad9987aa551438def5f194.jpg)
[RTOS training camp] course learning methods and structural knowledge review + linked list knowledge

Half of the people in the country run in Changsha. Where do half of the people in Changsha run?
随机推荐
Cross linguistic transfer of correlations between parts of speech and Gazette Features Reading Notes
【Code】剑指offer 03数组中重复的数字
NLP introduction + practice: Chapter 4: using pytorch to manually realize linear regression
[RTOS training camp] course learning methods and C language knowledge (pointer, structure, function pointer, linked list) and student questions
Small sample learning data set
U++学习笔记 UStruct、UEnum声明以及函数库简单函数实现
Inverse matrix block matrix
Win11打不开自带杀毒软件怎么办?win11自带杀毒功能打不开
Tutorial on the principle and application of database system (057) -- MySQL exercises
Advanced C language (I) dynamic memory allocation
Regular expression
点屏注意事项
Redis数据结构详解,结合书本
Mmocr usage guide
How to switch IP and move bricks with mobile game simulator
Transfer learning - getting started
1.30 升级bin文件添加后缀及文件长度
REST-assured接口测试框架详解
Lock upgrade: no lock, bias lock, lightweight lock, heavyweight lock
[translation paper] analysis of land cover classification using multi wavelength lidar system (2017)