摘要:
要求如题 头文件stdlib.h中有一个函数atof() 可以将字符串转化为双精度浮点数(double) double atof(const char *nptr); 此字符串为C风格字符串,因此需要将string转化为C风格字符串 此时可用到一个函数c_str() const char *c_str() 参考资料: string中c_str()、data()、copy(... 阅读全文
摘要:
Divisor Summation Problem Description Give a natural number n (1 <= n <= 500000), please tell the summation of all its proper divisors. Definition: A 阅读全文
摘要:
题目 Problem Description There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n 1) + F(n 2) (n =2) Input Input consists of a seque 阅读全文