向前走莫回头❤
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 32 下一页
摘要: 1:全排列#include#include#includeusing namespace std;char ch[10];int len,a[10];bool p[10];void dfs(int t){ if(t>len) { for(int i=1;i#in... 阅读全文
posted @ 2016-10-20 10:28 lris0-0 阅读(76) 评论(0) 推荐(0) 编辑
摘要: #include#include#include#includeusing namespace std;string s1,s2;int main(){ int i,len; cin>>s1; len=s1.length(); for (i=1... 阅读全文
posted @ 2016-10-20 10:25 lris0-0 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 4390: [Usaco2015 dec]Max Flow Description Farmer John has installed a new system of N−1 pipes to transport milk between the N stalls in his barn (2≤N≤ 阅读全文
posted @ 2016-10-19 17:16 lris0-0 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 4326: NOIP2015 运输计划 Description 公元 2044 年,人类进入了宇宙纪元。L 国有 n 个星球,还有 n−1 条双向航道,每条航道建立在两个星球之间,这 n−1 条航道连通了 L 国的所有星球。小 P 掌管一家物流公司, 该公司有很多个运输计划,每个运输计划形如:有一艘 阅读全文
posted @ 2016-10-18 21:22 lris0-0 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 245. 【UER #7】天路 隆冬将至,几天后跳蚤国便会迎来寒冬,这对于以血肉之躯和飞机搏斗的跳蚤们来说并不是件好事……然而在悠悠历史岁月中,跳蚤国早已有了应对严寒的应急措施方案! 在跳蚤国王的带领下,跳蚤们准备启动天路热能塔 —— 红米 note7(红米 note7 为发烧而生)。这座热能塔高耸 阅读全文
posted @ 2016-10-18 15:43 lris0-0 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 1055: [HAOI2008]玩具取名Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 1590 Solved: 927[Submit][Status][Discuss]Description 某人有一套玩具,并想法... 阅读全文
posted @ 2016-10-18 15:14 lris0-0 阅读(120) 评论(0) 推荐(0) 编辑
摘要: C. 【UER #7】套路反攻正在进行中,按照套路,跳蚤国将会很快获得最终的胜利。跳蚤国的情报局也没闲下来,他们正打算派遣一批“菲克蚤”前往跳晚国窃取有关三星 note7 的资料。Fake Yang 是这批“菲克蚤”的教练,他教会他们各种 Fake 的技术,以便更好混... 阅读全文
posted @ 2016-10-17 20:28 lris0-0 阅读(245) 评论(0) 推荐(0) 编辑
摘要: A. 【UER #7】短路“第七套广播体操,原地踏步——走!”众所周知,跳蚤们最喜欢每天早起做早操,经常天还没亮就齐刷刷地站在操场做着反复纵跳热热身。跳晚国在研制三星 note7 的时候注意到了这点,于是他们打算让炸弹更快地引爆,这样就可以消灭更多早起的跳蚤。三星 n... 阅读全文
posted @ 2016-10-17 20:10 lris0-0 阅读(176) 评论(0) 推荐(0) 编辑
摘要: #includeusing namespace std;int a[110],n;int main(){ int i; scanf("%d",&n); for (i=1;i0;i--) printf("%d ",a[i]); return 0;}#include#i... 阅读全文
posted @ 2016-10-16 11:41 lris0-0 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 【题解】【二分答案+贪心+dp】【第一问很显然是二分答案+判定,二分可能的最长一天的最小值,然后贪心的判断(尽量往一天里放,放不开再放到下一天)是否能在m+1天内打完】【第二问是一个求方案总数的dp,O(n³)是一个水dp,f[i][j]表示第i天打完j局的方案数】【... 阅读全文
posted @ 2016-10-16 11:30 lris0-0 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 32 下一页
过去的终会化为美满的财富~o( =∩ω∩= )m