
技巧题/好想法题
文章平均质量分 67
xtulollipop
这个作者很懒,什么都没留下…
展开
-
hdu5916Harmonic Value Description+构造
Problem Description The harmonic value of the permutation p1,p2,⋯pn is ∑n−1i=1gcd(pi.pi+1)∑_{i=1}^{n−1}gcd(p_i.p_{i+1})Mr. Frog is wondering about the permutation whose harmonic value is the strictly原创 2016-10-08 22:55:21 · 813 阅读 · 0 评论 -
hdu5914Triangle+打表
Triangle Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 338 Accepted Submission(s): 229Problem Description Mr. Frog has n sticks, whose l原创 2016-10-08 22:58:55 · 562 阅读 · 0 评论 -
hdu5596GTW likes gt+倒推
Problem Description Long long ago, there were n adorkable GT. Divided into two groups, they were playing games together, forming a column. The i−th GT would randomly get a value of ability bi. At the原创 2016-10-08 16:52:46 · 288 阅读 · 0 评论 -
hdu5524Subtrees+递归模拟
Problem Description There is a complete binary tree with N nodes.The subtree of the node i has Ai nodes.How many distinct numbers are there of Ai?Input There are multiple test cases, no more than 100原创 2016-10-04 22:35:53 · 515 阅读 · 0 评论 -
codeforces724B+Batch Sort
You are given a table consisting of n rows and m columns.Numbers in each row form a permutation of integers from 1 to m.You are allowed to pick two elements in one row and swap them, but no more than o原创 2016-10-09 00:11:20 · 1112 阅读 · 0 评论 -
hdu5922Minimum’s Revenge+水题
Problem Description There is a graph of n vertices which are indexed from 1 to n. For any pair of different vertices, the weight of the edge between them is the least common multiple of their indexes.原创 2016-10-11 22:40:12 · 799 阅读 · 0 评论 -
hud2547无剑无我+水题
Description 北宋末年,奸臣当道,宦官掌权,外侮日亟,辽军再犯。时下战火连连,烽烟四起,哀鸿遍野,民不聊生,又有众多能人异士群起而反,天下志士云集响应,景粮影从。 值此危急存亡之秋,在一个与世隔绝的地方—MCA山上一位江湖人称<英雄哪里出来>的人正在为抗击辽贼研究剑法,终于于一雷电交加之夜精确计算出了荡剑回锋的剑气伤害公式。定义 f(x, y, m, n) = sqrt(x*x + y原创 2016-10-14 20:47:56 · 585 阅读 · 0 评论