2014年1月5日

HDU 4815 Little Tiger vs. Deep Monkey(2013长春现场赛C题)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4815简单的DP题。 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 using namespace std;12 const int MAXN = 40010;13 double dp[2][MAXN];14 int a[MAXN];15 int main()16 {17 //freopen("i... 阅读全文

posted @ 2014-01-05 23:37 kuangbin 阅读(874) 评论(0) 推荐(0) 编辑

HDU 4821 String(2013长春现场赛I题)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4821字符串题。现场使用字符串HASH乱搞的。枚举开头! 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 using namespace std; 12 13 int HASH; 14 const int MAXN = 100010; 15 int now ; 16 struct H... 阅读全文

posted @ 2014-01-05 23:35 kuangbin 阅读(1952) 评论(0) 推荐(0) 编辑

HDU 4813 Hard Code(水题,2013年长春现场赛A题)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4813签到题。把一个字符串按照格式输出就可以了,很水 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 using namespace std;12 int main()13 {14 //freopen("in.txt","r",stdin);15 //freopen("ou 阅读全文

posted @ 2014-01-05 23:31 kuangbin 阅读(972) 评论(0) 推荐(0) 编辑

HDU 4818 Golden Radio Base (2013长春现场赛B题)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4814进制转换。现场根据题目给的两个公式,不断更新!!!胡搞就可以了。现场3A,我艹,一次循环开大TLE,一次开小WA,太逗了,呵呵现场源码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 using namespace std;12 int a[200];13 int main()14 {15 ... 阅读全文

posted @ 2014-01-05 23:29 kuangbin 阅读(1039) 评论(0) 推荐(0) 编辑

HDU 4816 Bathysphere (2013长春现场赛D题)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=48162013长春区域赛的D题。很简单的几何题,就是给了一条折线。 然后一个矩形窗去截取一部分,求最大面积。现场跪在这题,最后时刻TLE到死,用的每一小段去三分,时间复杂度是O(n log n) , 感觉数据也不至于超时。卧槽!!!!代码拷回来,今天在HDU一交,一模一样的代码AC了,加输入外挂6s多,不加也8s多,都可AC,呵呵·····(估计HDU时限放宽了!!!)现场赛卡三分太SXBK了,我艹!!!! 好好的一个现场赛绝杀错过了。以下是现场赛源 阅读全文

posted @ 2014-01-05 22:48 kuangbin 阅读(1193) 评论(0) 推荐(0) 编辑

导航

JAVASCRIPT: