
Algorithm Study
CGraphX
性格内向,爱好打乒乓球,听音乐,生活态度积极乐观向上
展开
-
输出所有不小于N的素数(一)
Print all prime numbers between 2 and some integer n 说明:本程序在vs.net2003下编译通过#include#includeusing翻译 2006-11-20 16:01:00 · 1841 阅读 · 3 评论 -
输出所有不小于N的素数(二)
print all prime numbers between 2 and some integer n#include#includeusing namespace std;typedef int collection[200];void primes(int n);void create(int n,collection c);void remove(int n,collecti翻译 2006-11-20 16:10:00 · 1570 阅读 · 0 评论 -
Bowling Scores
Bowling, as you may know, consists of ten frames. In each frame, there is a chance to knock down ten pins by throwing one or two balls down the bowling alley. To start, you roll the first ball of a gi翻译 2006-11-20 22:56:00 · 1019 阅读 · 0 评论