上一页 1 ··· 33 34 35 36 37

2013年6月24日

HDU4004 二分答案

摘要: 第一道二分答案。。。今天看了大牛的博客,突然发现有个叫“二分枚举答案”的方法好像很牛,于是便搜了些资料。。发现并不是很难,可能是我了解的只是冰山一脚罢了。。。加油ACMer!!!!#include#include#includeusing namespace std;#define max 5000... 阅读全文

posted @ 2013-06-24 16:25 Stomach_ache 阅读(113) 评论(0) 推荐(0) 编辑

2013年6月23日

NYoj 613 免费馅饼

摘要: #include#include#define Max(a,b) (a>b?a:b)#define max 100000+5int dp[max][11]; //dp[i][j]表示在i秒时站在j点处可得到的馅饼个数的最大值int map[max][11]; //把每秒钟每个坐标的馅饼个数存储在m... 阅读全文

posted @ 2013-06-23 17:22 Stomach_ache 阅读(100) 评论(0) 推荐(0) 编辑

2013年6月12日

UVA11549

摘要: 在UVA刷的第一题,floyd判圈。。。。。。。#include#includetypedef long long LL;int next(int n,int k){if(!k) return 0;long long k3=(long long)k*k;int a[15],l=0;while(k3>... 阅读全文

posted @ 2013-06-12 22:55 Stomach_ache 阅读(132) 评论(0) 推荐(0) 编辑

上一页 1 ··· 33 34 35 36 37

导航