摘要: 这题好像是某届NOIP的原题,我用的简单DP,因为主件最多两个子件,所以没什么考虑的,多判断几次,但是这代码太猥琐了,写的我一头的汗。不过还好,一次AC!================================华丽的分割线================================#include <stdio.h>#include <stdlib.h>struct thing{ int p, i; int len; int sub[2];}thing[60];int end;int f[32001];int main(int argc, char **ar 阅读全文
posted @ 2011-06-24 22:52 zqynux 阅读(234) 评论(0) 推荐(0) 编辑