Replies: 0 comments 2 replies
-
while里已经判断过i<KA,为啥if里又写一遍。。。为什么不写fabs就不能通过所有测试 |
Beta Was this translation helpful? Give feedback.
0 replies
-
时间久远,可能不很清楚了,尝试解释一下:
While的判断是两个条件“或”的结果,可能其中一个条件不满足。第一个if不就有
要考虑负数呀,比如 -x ,系数 -1 小于 0.05,但是要输出来。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://oliverlew.github.io/PAT/Advanced/1002.html
题目
Beta Was this translation helpful? Give feedback.
All reactions