----容斥原理
_Occult_
物語が始まった
展开
-
HDU 5072 Coprime
Description There are n people standing in a line. Each of them has a unique id number. Now the Ragnarok is coming. We should choose 3 people to defend the evil. As a group, the 3 people should原创 2016-11-04 18:41:53 · 331 阅读 · 0 评论 -
HDU 1695 GCD
Description Given 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) means the greatest common divisor of x and y. Since the number of choices may be ver原创 2016-09-29 17:36:58 · 293 阅读 · 0 评论