- 博客(4)
- 收藏
- 关注
原创 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 295
原创 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 583
原创 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 372
翻译 http://jxnu.acmclub.com/index.php?app=problem_title&id=468&problem_id=1017
#include int main() { int N[1000],K[1000],T,a[100],b,i,j,x,y; scanf("%d",&T); for(b=0;b { scanf("%d %d",&N[b],&K[b]); for(i=0;i { scanf("%d",&a[i]); x=a[K[b]-1]; }
2014-08-27 11:09:41 1523
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人