
构造
lqybzx
123
展开
-
2015ACM-ICPC 北京赛区 Problem I. Snake Carpet
Description In school of EECS of Peking University, there is a homework for all freshman -- the contest of AI snakes. This contest is ended today. Bacchus has got a very good result, so he decides原创 2016-07-13 13:01:19 · 811 阅读 · 0 评论 -
2016多校训练Contest7: 1005 Elegant Construction hdu5813
Problem DescriptionBeing an ACMer requires knowledge in many fields, because problems in this contest may use physics, biology, and even musicology as background. And now in this problem, you are原创 2016-08-09 21:28:10 · 347 阅读 · 0 评论 -
hdu 5916 Harmonic Value Description 2016ACM/CCPC长春赛区现场赛F
Problem DescriptionThe harmonic value of the permutation p1,p2,⋯pn is∑i=1n−1gcd(pi.pi+1)Mr. Frog is wondering about the permutation whose harmonic value is the strictly k-th smallest amo原创 2016-10-08 19:24:05 · 629 阅读 · 0 评论 -
hdu 5920 Ugly Problem 2016ACM/CCPC长春赛区现场赛J
Problem DescriptionEveryone hates ugly problems.You are given a positive integer. You must represent that number by sum of palindromic numbers.A palindromic number is a positive integer su原创 2016-10-08 19:29:34 · 438 阅读 · 0 评论 -
codeforces #378C(733.C) Epidemic in Monstropolis
There was an epidemic in Monstropolis and all monsters became sick. To recover, all monsters lined up in queue for an appointment to the only doctor in the city.Soon, monsters became hungry and be原创 2017-05-20 19:30:30 · 411 阅读 · 0 评论 -
2017多校训练Contest5: 1006 Rikka with Graph hdu6090
Problem DescriptionAs we know, Rikka is poor at math. Yuta is worrying about this situation, so he gives Rikka some math tasks to practice. There is one of them:For an undirected graph G with原创 2017-08-20 17:51:59 · 291 阅读 · 0 评论