Problem E: Swipe Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 100  Solved: 15[Submit][Status][Web Board] Description 德鲁伊在炉石传说中是一个很稳定的职业,主流的卡组套路有咆哮德,城墙德以及让人很无奈的疲劳德.然而,大部分的卡组总都包括“横扫”这张德鲁伊的职业法术卡.       我们假定战场上的敌人数目不定,敌人的血量已知,我们想知道最少使用多少张“横扫”能消灭战场上所有敌人…
Contest2073 - 湖南多校对抗赛(2015.04.06) Problem A: (More) Multiplication Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 85  Solved: 47[Submit][Status][Web Board] Description Educators are always coming up with new ways to teach math to students. In 2011, a…
Contest2071 - 湖南多校对抗赛(2015.03.28) 本次比赛试题由湖南大学ACM校队原创 http://acm.csu.edu.cn/OnlineJudge/contest.php?cid=2071 Problem A: Rectangle Time Limit: 1 Sec  Memory Limit: 256 MBSubmit: 210  Solved: 48[Submit][Status][Web Board] Description Now ,there are some…
给四个数 问能不能算出24点...我的方法比较烂...920ms 差点TLE.应该有更好的方法. #include<stdio.h> #include<string.h> #include<math.h> #include<algorithm> using namespace std; ], ff[], n; ][], yy[]; int sum; double get(double x, double y, int fu) { ) return x + y…
并查集.从后往前加边. #include<stdio.h> #include<string.h> #include<math.h> #include<algorithm> using namespace std; + ; int father[maxn], u[maxn], v[maxn], Q, q[maxn], ans[maxn], ff[maxn]; int find(int x) { if (x != father[x]) father[x] = f…
Aquarium Tank Time Limit: 1 Sec  Memory Limit: 128 MBSubmit: 15  Solved: 4[Submit][Status][Web Board] Description You just bought an “artistic” aquarium tank that has an interesting shape, and you poured L litres of water into the tank. How high is t…
Problem H: Heaps Time Limit: 2 Sec  Memory Limit: 128 MBSubmit: 48  Solved: 9[Submit][Status][Web Board] Description Zuosige always has bad luck. Recently, he is in hospital because of pneumonia. While he is taking his injection, he feels extremely b…
Problem H: Clock Pictures Time Limit: 3 Sec  Memory Limit: 128 MBSubmit: 73  Solved: 18[Submit][Status][Web Board] Description Input Output Sample Input 6 1 2 3 4 5 6 7 6 5 4 3 1 Sample Output impossible HINT 题意:给你角度,问你通过旋转a图和b图能否重合: 思路:KMP:(比赛的时候,忘记…
2136: 统帅三军! Submit Page   Summary   Time Limit: 1 Sec     Memory Limit: 128 Mb     Submitted: 55     Solved: 11 Description Wells最近迷上了一款攻城的策略游戏,点就去就能当大元帅统帅三军! 游戏界面主要是一个平面(坐标可以为浮点数),然而Wells发现这游戏是个骗局,其实只给了一个军队. Wells初始有一个军队,仅包含n个士兵,每个士兵有一个初始位置(x,y)和一个劳…