上一页 1 ··· 16 17 18 19 20
摘要: 要求如题 头文件stdlib.h中有一个函数atof() 可以将字符串转化为双精度浮点数(double) double atof(const char *nptr); 此字符串为C风格字符串,因此需要将string转化为C风格字符串 此时可用到一个函数c_str() const char *c_str() 参考资料: string中c_str()、data()、copy(... 阅读全文
posted @ 2016-03-14 23:03 Pic 阅读(1005) 评论(0) 推荐(0) 编辑
摘要: 这是一个测试blog来自为知笔记(Wiz) 阅读全文
posted @ 2016-03-12 22:57 Pic 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Divisor Summation Problem Description Give a natural number n (1 <= n <= 500000), please tell the summation of all its proper divisors. Definition: A 阅读全文
posted @ 2016-02-17 19:27 Pic 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 题目 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 阅读全文
posted @ 2016-02-15 23:31 Pic 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20