摘要: 真的是水题一道啊,看懂题意就好了,这是人家的代码....自己懒得做啊,不过看完之后才知道其实应该动下手的....嘻嘻#includeconst int Base10[]={1000,100,10,1};const int Base12[]={1728,144,12,1};const int Base16[]={4096,256,16,1};int main(void){ int Sum10,Sum12,Sum16,i,j,tmp10,tmp12,tmp16; for(i=2992;i<10000;i++) { Sum10=Sum12=Sum16=0; ... 阅读全文
posted @ 2013-09-19 15:50 龙城星 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 这道题目还是有些歧义,成了环形就难办了啊,感觉就用不了dp了,不符合无后性了这道题目是树形dp,用了一个晚上学习树形dp不过我的代码没有通过#include "iostream"#include "cmath"#include "string.h"using namespace std;int main(){ int n,m,i,j,k,state[220],low[220][220],high[220],set[220],f[220][2],a,b,photon[220],shu[220][220]; while(cin>&g 阅读全文
posted @ 2013-09-19 15:34 龙城星 阅读(179) 评论(0) 推荐(0) 编辑