2009年4月21日

sum(a[i]|a[j])

摘要: //sum((n*n-(n-b[i])^2)*2^i) #include using namespace std;int main(){ int b[100]; int a[10010]; int T; scanf("%d", &T); while (T--) { int n; scanf("%d", &n); mem... 阅读全文

posted @ 2009-04-21 16:15 ZAFU_VA 阅读(246) 评论(0) 推荐(0) 编辑

pku 1010 dfs

摘要: //dfs 做了两天 调试了半天 发现va 是关键字说 突然变0了 自己ubuntu上的g++题目给的数据都没过 提交竟ac了说 #include #include using namespace std;int value[10010], customer[10010], cnt[50];int av, result, types, flag, maxvalue, re[4];int ret... 阅读全文

posted @ 2009-04-21 15:57 ZAFU_VA 阅读(382) 评论(0) 推荐(0) 编辑

导航