![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU题目
文章平均质量分 55
callmexiaolu
这个作者很懒,什么都没留下…
展开
-
HDU 1008 Elevator
先上题目: Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in spec原创 2016-11-16 15:54:55 · 454 阅读 · 0 评论 -
HDU 1005 Number Sequence
先上题目 **Problem Description A number sequence is defined as follows: f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7. Given A, B, and n, you are to calculate the value of f(n).Input原创 2016-11-15 16:22:19 · 241 阅读 · 0 评论 -
HDU 1002 A+B ProblemⅡ
(大数加法,注意格式) Problem Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.Input The first line of the input contains an integer T(1<原创 2016-11-07 16:40:09 · 408 阅读 · 0 评论 -
HDU 1003 Max Sum
(DP动态规划)#include<bits/stdc++.h>typedef long long LL;#define Max(a,b) ((a)>(b)?(a):(b))#define Min(a,b) ((a)<(b)?(a):(b))#define INF 0x3f3f3f3fusing namespace std;int dp[100100];int a[100100];原创 2016-11-10 13:18:58 · 259 阅读 · 0 评论 -
2108 Shape of HDU
题意为判断多边形的凹凸性。有三种方法:1)角度法:判断每个顶点所对应的内角是否小于180度,如果小于180度,则是凸的,如果大于180度,则是凹多边形。2)凸包法:这种方法首先计算这个多边形的凸包,关于凸包的定义在此不再赘述,首先可以肯定的是凸包肯定是一个凸多边形。如果计算出来的凸多边形和原始多边形的点数一样多,那就说明此多边形时凸多边形,否则就是凹多边形。3)顶点凹凸性法利用以当前顶点为中心的矢量原创 2016-12-20 11:54:52 · 513 阅读 · 0 评论 -
过山车
过山车 Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 8 Accepted Submission(s) : 4 Problem Description RPG girls今天和大家一起去游乐场玩,终于可以坐上梦寐以求的过山车了。可原创 2017-02-25 20:10:56 · 382 阅读 · 0 评论 -
一个人的旅行
一个人的旅行 Time Limit : 1000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other) Total Submission(s) : 31 Accepted Submission(s) : 13 Problem Description 虽然草儿是个路痴(就是在杭电待了一年多,居然还会在校园里迷路的人,汗原创 2017-02-25 20:13:03 · 303 阅读 · 0 评论 -
Self Numbers
Self Numbers Time Limit : 20000/10000ms (Java/Other) Memory Limit : 65536/32768K (Java/Other) Total Submission(s) : 22 Accepted Submission(s) : 8 Problem Description In 1949 the Indian mathemat原创 2017-02-25 20:15:37 · 532 阅读 · 0 评论