![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
水题
Energy2014
这个作者很懒,什么都没留下…
展开
-
Gold Coins
Description The king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two days (the second and third days of service), th原创 2014-09-11 11:08:00 · 582 阅读 · 0 评论 -
http://poj.org/problem?id=3006
#include #include int Isprime(int n) { int i,t; if(n==1) return -1; if(n==2) return 1; else { t=0; for(i=2;i { if(n%i==0) { t=1; break;原创 2014-08-29 16:24:21 · 371 阅读 · 0 评论 -
The 3n + 1 problem
Description Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an a原创 2014-09-13 19:26:27 · 294 阅读 · 0 评论