摘要:
Question The task is simple: given any positive integer N, you are supposed to count the total number of 1’s in the decimal form of the integers from 阅读全文
摘要:
这题最后两个测试总是跑不通,最后发现是加法和乘法运算中数值较大,double和int的精度都不够,得使用long double和long int才行。 #include<cstdio> using namespace std; const int N = 100010; long int dp[N] 阅读全文