摘要:
这算是循环的入门题目了,因为n 是小于 10 的非负数,所以可以知道结果不过超出int范围。等式左边的数每次自增一个a,可以用一个变量来表示 na = na * 10 + a, 意思就是每循环一次就在最后面添加一个a;代码比较简单如下:1#include23intmain()4{5inti,n,a,... 阅读全文
摘要:
题目意思:就是说一个平面上有很多个矩形,求他们在平面上的覆盖面积Problem DescriptionThere are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some... 阅读全文