随笔分类 -  ACM集训~2

I - Doing Homework again
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1789 题意:就是你每次完成一门功课都要花一天的时间,问你怎样安排完成作业的顺序能让你被扣的分数最少。竟然是贪心。。。。。。。。。 分析:开始的思路是先按照所扣分数的多少排序,然后就没有下文了。。。。。。 阅读全文

posted @ 2016-07-24 19:22 踮起脚望天 阅读(200) 评论(0) 推荐(0)

H - Frosh Week
摘要:Description During Frosh Week, students play various fun games to get to know each other and compete against other teams. In one such game, all the fr 阅读全文

posted @ 2016-07-22 19:40 踮起脚望天 阅读(406) 评论(0) 推荐(0)

O - Can you find it?
摘要:Description Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, 阅读全文

posted @ 2016-07-22 19:33 踮起脚望天 阅读(195) 评论(0) 推荐(0)

G - Who's in the Middle
摘要:Description FJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as mu 阅读全文

posted @ 2016-07-22 19:23 踮起脚望天 阅读(122) 评论(0) 推荐(0)

L - Points on Cycle
摘要:Description There is a cycle with its center on the origin. Now give you a point on the cycle, you are to find out the other two points on it, to maxi 阅读全文

posted @ 2016-07-22 19:17 踮起脚望天 阅读(122) 评论(0) 推荐(0)

B - The Suspects
摘要:Description 严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从2003年3月中旬开始被认为是全球威胁。为了减少传播给别人的机会, 最好的策略是隔离可能的患者。 在Not-Spreading-Your-Sickness大学( NSYSU), 有许多学生团体。同一组的学生 阅读全文

posted @ 2016-07-22 19:06 踮起脚望天 阅读(246) 评论(0) 推荐(0)

F - A Simple Problem with Integers
摘要:Description 给出了一个序列,你需要处理如下两种询问。 "C a b c"表示给[a, b]区间中的值全部增加c (-10000 ≤ c ≤ 10000)。 "Q a b" 询问[a, b]区间中所有值的和。 Description 给出了一个序列,你需要处理如下两种询问。 "C a b  阅读全文

posted @ 2016-07-22 19:00 踮起脚望天 阅读(220) 评论(0) 推荐(0)

E - I Hate It
摘要:Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。这让很多学生很反感。不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Description 很多学校流行一种比较的习惯 阅读全文

posted @ 2016-07-22 18:56 踮起脚望天 阅读(147) 评论(0) 推荐(0)

D - 敌兵布阵
摘要:Description Lily 特别喜欢养花,但是由于她的花特别多,所以照料这些花就变得不太容易。她把她的花依次排成一行,每盆花都有一个美观值。如果Lily把某盆花照料的好的话,这盆花的美观值就会上升,如果照料的不好的话,这盆花的美观值就会下降。有时,Lily想知道某段连续的花的美观值之和是多少, 阅读全文

posted @ 2016-07-22 18:53 踮起脚望天 阅读(169) 评论(0) 推荐(0)

J~今年暑假不AC
摘要:#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; typedef struct st { int begin; int end; }st; bool cmp(s 阅读全文

posted @ 2016-07-22 18:32 踮起脚望天 阅读(233) 评论(0) 推荐(0)

K - Hero
摘要:Description When playing DotA with god-like rivals and pig-like team members, you have to face an embarrassing situation: All your teammates are kille 阅读全文

posted @ 2016-07-18 20:51 踮起脚望天 阅读(138) 评论(0) 推荐(0)

H - Frosh Week
摘要:Description During Frosh Week, students play various fun games to get to know each other and compete against other teams. In one such game, all the fr 阅读全文

posted @ 2016-07-18 20:45 踮起脚望天 阅读(169) 评论(0) 推荐(0)

G - Who's in the Middle
摘要:Description FJ is surveying his herd to find the most average cow. He wants to know how much milk this 'median' cow gives: half of the cows give as mu 阅读全文

posted @ 2016-07-18 11:31 踮起脚望天 阅读(94) 评论(0) 推荐(0)