Sweety

Practice makes perfect

导航

上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 62 下一页

2016年3月12日

摘要: Description People are different. Some secretly read magazines full of interesting girls' pictures, others create an A-bomb in their cellar... 阅读全文

posted @ 2016-03-12 09:58 蓝空 阅读(140) 评论(0) 推荐(0) 编辑

摘要: Description The Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 #include__int64 e[1000005]... 阅读全文

posted @ 2016-03-12 09:55 蓝空 阅读(183) 评论(0) 推荐(0) 编辑

摘要: Description Given n, a positive integer, how many positive integers less than n are relatively prime to n? Two integers a and b are relatively ... 阅读全文

posted @ 2016-03-12 09:52 蓝空 阅读(314) 评论(0) 推荐(0) 编辑

2016年3月11日

摘要: Description Ms. Iyo Kiffa-Australis has a balance and only two kinds of weights to measure a dose of medicine. For example, to measure 200mg of... 阅读全文

posted @ 2016-03-11 23:42 蓝空 阅读(130) 评论(0) 推荐(0) 编辑

摘要: Description A Compiler Mystery: We are given a C-language style for loop of type for (variable = A; variable != B; variable += C) statement;... 阅读全文

posted @ 2016-03-11 20:49 蓝空 阅读(164) 评论(0) 推荐(0) 编辑

摘要: 同余式:正整数a,b对p取模,它们的余数相同,(a % p)=(b % p) 记做 或者a ≡ b (mod p)。 运算规则 模运算与基本四则运算有些相似,但是除法例外。其规则如下: (a + b) % p = (a % p + b % p) % p (1) ... 阅读全文

posted @ 2016-03-11 19:24 蓝空 阅读(146) 评论(0) 推荐(0) 编辑

摘要: 原博网址:http://www.cnblogs.com/frog112111/archive/2012/08/19/2646012.html 欧几里德算法 欧几里德算法又称辗转相除法,用于计算两个整数a,b的最大公约数。 基本算法:设a=qb+r,其中a,b,q,r都是整数,则gcd(a... 阅读全文

posted @ 2016-03-11 19:21 蓝空 阅读(183) 评论(0) 推荐(0) 编辑

2015年12月5日

摘要: Problem Description ZYBZYBZYB has a premutation PPP,but he only remeber the reverse log of each prefix of the premutation,now he ask you to res... 阅读全文

posted @ 2015-12-05 22:02 蓝空 阅读(159) 评论(0) 推荐(0) 编辑

摘要: 本篇承接上一篇文章,主要讲解最大流问题的Ford-Fulkerson解法。可是说这是一种方法,而不是算法,因为它包含具有不同运行时间的几种实现。该方法依赖于三种重要思想:残留网络,增广路径和割。本文将会详细介绍这些内容,下一篇文章我们提供一种该方法的Java实现。 在介绍着三种概念之前,我们... 阅读全文

posted @ 2015-12-05 14:49 蓝空 阅读(336) 评论(0) 推荐(0) 编辑

摘要: Description A number of schools are connected to a computer network. Agreements have been developed among those schools: each school maintains a ... 阅读全文

posted @ 2015-12-05 10:38 蓝空 阅读(225) 评论(0) 推荐(0) 编辑

上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 62 下一页