HMachinehttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5337树的深搜。邻接表快一些 1 #include 2 #include 3 #include 4 #include 5 #define mt(a,b) memse...
分类:
其他好文 时间:
2014-08-24 19:15:42
阅读次数:
184
135 - ZOJ Monthly, August 2014
A:构造问题,判断序列奇偶性,很容易发现最小值不是1就是0,最大值不是n就是n - 1,注意细节去构造即可
E:dp,dp[i][j]表示长度i,末尾状态为j的最大值,然后每个位置数字取与不取,不断状态转移即可
G:就一个模拟题没什么好说的
H:dfs,每次dfs下去,把子树宽度保存下来,然后找最大值,如果有多个...
分类:
其他好文 时间:
2014-08-24 18:04:51
阅读次数:
307
草,为毛。先粘上代码,就不能在代码前面写字。 非要先写字,再粘代码。坑爹…… demo: new?HighchartsPager(‘container‘,4,?{
????????title:?{
????????????text:?‘Monthly?Average...
分类:
其他好文 时间:
2014-08-20 14:34:02
阅读次数:
351
Problem Description
Farmer John is an astounding accounting wizard and has realized he might run out of money to run the farm. He has already calculated and recorded the exact amount of money (1 ...
分类:
其他好文 时间:
2014-08-19 22:34:09
阅读次数:
228
Monthly ExpenseTime Limit:2000MSMemory Limit:65536KTotal Submissions:14158Accepted:5697DescriptionFarmer John is an astounding accounting wizard and h...
分类:
其他好文 时间:
2014-08-10 18:03:10
阅读次数:
340
crontab命令常见于Unix和类Unix的操作系统之中,用于设置周期性被执行的指令crontab在/etc目录下面存在cron.d,cron.daily,cron.weekly,cron.monthly,cron.hourly五个目录和crontab,cron.deny二个文件。cron.dai...
分类:
其他好文 时间:
2014-08-05 22:09:50
阅读次数:
207
0x01 查看访问日志看是否有文件上传操作(POST方法),IPREMOVED--[01/Mar/2013:06:16:48-0600]"POST/uploads/monthly_10_2012/view.php HTTP/1.1"20036"-""Mozilla/5.0"IPREMOVED--[0...
分类:
Web程序 时间:
2014-08-03 17:54:45
阅读次数:
283
今天比赛做了一下这套题目。出了四道。两道水题,两道DP...
分类:
其他好文 时间:
2014-08-02 18:23:04
阅读次数:
336
//最大值最小
//天数的a[i]值是固定的 不能改变顺序
# include
# include
# include
using namespace std;
int n,m;
int a[100010];
int judge(int x)
{
int ans=1;//分成了几组
int tmp=0;
for(int i=0;i<n;i++)
{
tmp+=a[i];
if...
分类:
其他好文 时间:
2014-07-31 13:33:26
阅读次数:
197
Monthly Expense
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 14158
Accepted: 5697
Description
Farmer John is an astounding accounting wizard and has r...
分类:
其他好文 时间:
2014-07-23 16:38:21
阅读次数:
228