摘要: 2301: [HAOI2011]Problem b Description 对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤d,且gcd(x,y) = k,gcd(x,y)函数为x和y的最大公约数。 Input 第一行一个整数n,接下来n行每行五个整数,分别表示a、b、c、 阅读全文
posted @ 2018-10-14 20:49 StarHai 阅读(232) 评论(0) 推荐(0) 编辑
摘要: PUBG is a multiplayer online battle royale video game. In the game, up to one hundred players parachute onto an island and scavenge for weapons and eq 阅读全文
posted @ 2018-10-14 20:34 StarHai 阅读(375) 评论(0) 推荐(0) 编辑
摘要: BaoBao is trapped in a one-dimensional maze consisting of grids arranged in a row! The grids are numbered from 1 to from left to right, and the -th gr 阅读全文
posted @ 2018-10-14 20:30 StarHai 阅读(241) 评论(0) 推荐(0) 编辑
摘要: Given an array of integers , we say a set is a prime set of the given array, if and is prime. BaoBao has just found an array of integers in his pocket 阅读全文
posted @ 2018-10-14 20:25 StarHai 阅读(625) 评论(0) 推荐(1) 编辑
摘要: DreamGrid has a nonnegative integer . He would like to divide into nonnegative integers and minimizes their bitwise or (i.e. and should be as small as 阅读全文
posted @ 2018-10-14 20:18 StarHai 阅读(607) 评论(0) 推荐(0) 编辑
摘要: BaoBao has just found a string of length consisting of 'C' and 'P' in his pocket. As a big fan of the China Collegiate Programming Contest, BaoBao thi 阅读全文
posted @ 2018-10-14 20:09 StarHai 阅读(429) 评论(0) 推荐(0) 编辑
摘要: Crusaders Quest is an interesting mobile game. A mysterious witch has brought great darkness to the game world, and the only hope for your kingdom is 阅读全文
posted @ 2018-10-14 20:07 StarHai 阅读(712) 评论(0) 推荐(0) 编辑
摘要: The 2017 China Collegiate Programming Contest Qinhuangdao Site is coming! There will be teams participating in the contest, and the contest will be he 阅读全文
posted @ 2018-10-14 20:05 StarHai 阅读(596) 评论(0) 推荐(0) 编辑
摘要: Consider a un-rooted tree T which is not the biological significance of tree or plant, but a tree as an undirected graph in graph theory with n nodes, 阅读全文
posted @ 2018-10-14 01:16 StarHai 阅读(568) 评论(0) 推荐(0) 编辑
摘要: Here N (N ≥ 3) rabbits are playing by the river. They are playing on a number line, each occupying a different integer. In a single move, one of the o 阅读全文
posted @ 2018-10-14 01:14 StarHai 阅读(541) 评论(0) 推荐(0) 编辑
摘要: Little boxes on the hillside. Little boxes made of ticky-tacky. Little boxes. Little boxes. Little boxes all the same. There are a green boxes, and b 阅读全文
posted @ 2018-10-14 01:12 StarHai 阅读(573) 评论(0) 推荐(0) 编辑
摘要: The ant Welly now dedicates himself to urban infrastructure. He came to the kingdom of numbers and solicited an audience with the king. He recounted h 阅读全文
posted @ 2018-10-14 01:10 StarHai 阅读(543) 评论(0) 推荐(0) 编辑
摘要: A triangle is a Heron’s triangle if it satisfies that the side lengths of it are consecutive integers t−1, t, t+ 1 and thatits area is an intege 阅读全文
posted @ 2018-10-14 01:07 StarHai 阅读(463) 评论(0) 推荐(0) 编辑