摘要:
传送门:http://codeforces.com/problemset/problem/609/D(如需转载,请注明出处,谢谢O(∩_∩)O)题意:Nura想买k个小玩意,她手上有 s 个burles(一种货币),有m个小玩意供她选择购买,但每个小玩意只能用dollars或者pounds来购买,所... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5352看题看得心好累。题目大意:给出 n 个点,依次执行 m 次操作:输入“1 x”时,表示将与 x 连通的点全部修复;输入“2 x y”,表示在 x 与 y 之间加一条边;输入“3 x y”,表示删除 ... 阅读全文
摘要:
Problem DescriptionXYZ is playing an interesting game called "drops". It is played on ar∗cgrid. Each grid cell is either empty, or occupied by a water... 阅读全文
摘要:
Problem DescriptionIn ann∗mmaze, the right-bottom corner is the exit (position(n,m)is the exit). In every position of this maze, there is either a0or ... 阅读全文
摘要:
DescriptionMr. Hdu is interested in Greatest Common Divisor (GCD). He wants to find more and more interesting things about GCD. Today He comes up with... 阅读全文
摘要:
Problem DescriptionThere arenpeople andmpairs of friends. For every pair of friends, they can choose to become online friends (communicating using onl... 阅读全文