2020年5月11日

D车辆调度(dfs)

摘要: https://ac.nowcoder.com/acm/contest/5477/D 链接:https://ac.nowcoder.com/acm/contest/5477/D来源:牛客网 时间限制:C/C++ 5秒,其他语言10秒 空间限制:C/C++ 262144K,其他语言524288K 64 阅读全文

posted @ 2020-05-11 18:05 littleyy 阅读(271) 评论(0) 推荐(0)

2019年11月27日

整数拆分

摘要: 母函数模板解决整数拆分问题 //#include<bits/stdc++.h> #include<iostream> using namespace std; typedef long long ll; const int maxn=210; ll c1[maxn],c2[maxn]; void p 阅读全文

posted @ 2019-11-27 19:32 littleyy 阅读(191) 评论(0) 推荐(0)

2019年11月24日

poj1751kruskal

摘要: Highways Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 26772 Accepted: 7803 Special Judge Description The island nation of Flatopia is pe 阅读全文

posted @ 2019-11-24 20:45 littleyy 阅读(124) 评论(0) 推荐(0)

poj2485kruskal

摘要: Highways Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 40303 Accepted: 17615 Description The island nation of Flatopia is perfectly flat. 阅读全文

posted @ 2019-11-24 18:57 littleyy 阅读(81) 评论(0) 推荐(0)

poj2485prim

摘要: Highways Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 40303 Accepted: 17615 Description The island nation of Flatopia is perfectly flat. 阅读全文

posted @ 2019-11-24 18:55 littleyy 阅读(104) 评论(0) 推荐(0)

牛客训练54--B

摘要: /*2019-11-16 问题描述 小a学习了树状数组之后,对lowbit很感兴趣,于是出了一道题。 给定非负整数n。记lowbit(x)为x的二进制表示下最低位的1所对应的值, 如,某个数x最低位的1分别在第1,2,3位时,lowbit(x)分别是1,2,4。求sum∑(i=0,2^n)lowbi 阅读全文

posted @ 2019-11-24 18:51 littleyy 阅读(129) 评论(0) 推荐(0)

导航