原创 Jumping Joe SGU - 141
Jumping Joe SGU - 141 Joe is a frog who likes to jump a lot. In fact, that's all he does: he jumps forwards and backwa
原创 Coprime HDU - 5072
Coprime HDU - 5072 There are n people standing in a line. Each of them has a unique id number. Now the Ragnarok is
原创 Array Challenge 2017 多校10 矩陣快速冪
Array Challenge There’s an array that is generated by following rule.h0=2,h1=3,h2=6,hn=4hn−1+17hn−2−12hn−3−16 And le
原创 Two strings 2017 多校 9 J
Two strings Giving two strings and you should judge if they are matched. The first string contains lowercase l
原创 GCD HDU - 1695
GCD HDU - 1695 Give n 5 integers: a, b, c, d, k, you're to find x in a...b, y in c...d that GCD(x, y) = k. GCD(x, y)
原创 Law of Commutation HDU - 6189
Law of Commutation HDU - 6189 As we all know, operation ''+'' complies with the commutative law. That is
原创 Co-prime HDU - 4135
HDU _4135 Co_prime Given a number N, you are asked to count the number of integers between A and B inclusive which a
原创 HDU 1796 How many integers can you find
HDU 1796 How many integers can you find 題意: 求小於n 的數中有多少個不同的數是 m個數中的某一個的倍數。 思路:容斥原理,假如m=2 ,ans=n/a[1]+n/a[2]-n/lc
原创 Snail Alice HDU - 3411
Snail Alice HDU - 3411 A function f(n), n is a positive integer, and Given q and n, please calculate the value
原创 Dead Fraction POJ - 1930
Dead Fraction POJ - 1930 Mike is frantically scrambling to finish his thesis at the last minute. He needs to assemble
原创 Coprime HDU - 3388
Coprime HDU - 3388 Please write a program to calculate the k-th positive integer that is coprime with m and n simult
原创 RealPhobia HDU - 4180
RealPhobia HDU - 4180 Bert is a programmer with a real fear of floating point arithmetic. Bert has quite successfully
原创 Integer Sequences SGU - 140
Integer Sequences SGU - 140 A sequence A is called an integer sequence of length N if all its elements A1 A2 .. AN ar
原创 LightOJ 1306 Solutions to an Equation
LightOJ 1306 Solutions to an Equation You have to find the number of solutions of the following equation: Ax + By +
原创 So Easy! HDU 4565
So Easy! 先吐槽一下吧 完全沒有想要做這個題,本來我在學 FFT 專題的,然後有個題不會搜題解,好不容易找到了一個,真坑 然後看着一臉懵,完全不知道講的啥,在一個小時之後我選擇了放棄,準備敲一個矩陣快速冪,A了就跑