TopCoder
文章平均质量分 78
xlvector
heihei
展开
-
TopCoder SRM 281
SRM 281 - Problem Set & Analysis by lovro can be see here.The following is my solution, all programs are pass system test.The ProblemsIntegerGeneratorThis following is my algorithm :->原创 2006-01-25 16:31:00 · 869 阅读 · 0 评论 -
TopCoder SRM285 -- My Solution
这次比赛是北京时间夜里12点开始的,所以没有参加。下面的代码是比赛后一天写的,都通过了系统测试:Problems :BasketsWithApples: We have some baskets containing apples, and we would like to perform the原创 2006-01-25 16:57:00 · 1469 阅读 · 1 评论 -
Multi-Threading Competition Series
TopCoder今年将举行Inter的多处理器系统的并行算法比赛。下面是相关的资料多线程编程教程: POSIX Threads Programming并行算法 A Library of Parallel Algorithms Designing and Building Parallel Programs Programming Parallel Algorithms原创 2006-02-01 18:39:00 · 1173 阅读 · 0 评论 -
计算a阶乘和b的最大公约数
这是TopCoder SRM283的一道题目,属于数论的范畴。如果使用算法不适合,会出现超时。算法如下: ret = 1; for(int p = 2;(long long )p*p if(b%p==0){//p is prime factor of b k = 0; //calculate k that p^k is fa原创 2006-01-30 13:57:00 · 1598 阅读 · 0 评论 -
TopCoder SRM280 -- My Solution
TopCoder SRM 280 SRM 280 - Problem Set & Analysis by lovro can be see here.The following is my solution, all programs are pass system test.The ProblemsUniqueDigits This problem only t原创 2006-01-24 18:38:00 · 1075 阅读 · 0 评论 -
MatrixPainting
MatrixPaintingProblem StatementThere is a matrix with 9 rows and 9 columns. Each cell of the matrix is either black or white. With a single repaint operation, you can repaint all the cells in a single原创 2006-11-15 16:05:00 · 1077 阅读 · 0 评论