二分法
丘大路
这个作者很懒,什么都没留下…
展开
-
二分法 The Frog's Games
DescriptionThe annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog athletes原创 2016-08-16 16:30:02 · 685 阅读 · 0 评论 -
矩阵乘法 Matrix Power Series
DescriptionGiven a n × n matrix A and a positive integer k, find the sum S = A + A2 + A3 + … + Ak.InputThe input contains exactly one test case. The first line of input contain原创 2016-08-17 15:51:33 · 178 阅读 · 0 评论 -
Fibonacci
DescriptionIn the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2 for n ≥ 2. For example, the first ten terms of the Fibonacci sequence are:0, 1, 1, 2, 3, 5, 8, 13, 21,原创 2016-08-17 15:55:49 · 199 阅读 · 0 评论 -
hdu3388 Coprime 二分+容斥原理
DescriptionPlease write a program to calculate the k-th positive integer that is coprime with m and n simultaneously. A is coprime with B when their greatest common divisor is 1.Input原创 2016-08-26 17:01:53 · 594 阅读 · 0 评论