【例42.3】 判断浮点数是否相等
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
给出两个浮点数,请你判断它们是否相等。这里两个浮点数,相等定义为:∣a−b∣<10^{−8}。
输入格式
两个浮点数 , (0≤a,b<9)。
输出格式
如果相等,输出"yes
";否则,输出"no
"。
样例
6.7574929582 6.7574929509
yes
测试42
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 8
- Start at
- 2025-5-5 9:30
- End at
- 2025-5-5 14:30
- Duration
- 5 hour(s)
- Host
- Partic.
- 6