不要让昨天 占据你的今天 夏午晴天

夏午晴天

上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页

2017年5月13日

poj_1979(dfs)

摘要: Red and Black There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. Fro 阅读全文

posted @ 2017-05-13 11:22 夏晴天 阅读(76) 评论(0) 推荐(0) 编辑

2017年5月11日

HDU_1142(最短路 + dfs)

摘要: Jimmy experiences a lot of stress at work these days, especially since his accident made working difficult. To relax after a hard day, he likes to wal 阅读全文

posted @ 2017-05-11 18:36 夏晴天 阅读(107) 评论(0) 推荐(0) 编辑

HDU_2112(最短路)

摘要: 经过锦囊相助,海东集团终于度过了危机,从此,HDU的发展就一直顺风顺水,到了2050年,集团已经相当规模了,据说进入了钱江肉丝经济开发区500强。这时候,XHD夫妇也退居了二线,并在风景秀美的诸暨市浬浦镇陶姚村买了个房子,开始安度晚年了。 这样住了一段时间,徐总对当地的交通还是不太了解。有时很郁闷, 阅读全文

posted @ 2017-05-11 12:24 夏晴天 阅读(141) 评论(0) 推荐(0) 编辑

2017年5月9日

prim

摘要: 1 int n; 2 int weight; 3 int g[MAXN][MAXN]; 4 int vis[MAXN]; 5 int dis[MAXN]; 6 7 8 void prim(int v0){ 9 int pos = v0; 10 for(int i = 1; i 2 #include 3 #include 4 using names... 阅读全文

posted @ 2017-05-09 21:51 夏晴天 阅读(294) 评论(0) 推荐(0) 编辑

2017年5月7日

Minimum number of steps 805D

摘要: http://codeforces.com/contest/805/problem/D D. Minimum number of steps time limit per test 1 second memory limit per test 256 megabytes input standard 阅读全文

posted @ 2017-05-07 23:00 夏晴天 阅读(341) 评论(0) 推荐(0) 编辑

Find Amir CodeForces 805C

摘要: http://codeforces.com/contest/805/problem/C 题意:有n个学校,学校的编号是从1到n,从学校i到学校j的花费是(i+j)%(n+1),让你求遍历完所有学校的最小花费 解析:你会发现头尾相加就会使得他等于n+1的,那么他的遍历顺序应该是 1 >n >2 >(n 阅读全文

posted @ 2017-05-07 21:46 夏晴天 阅读(92) 评论(0) 推荐(0) 编辑

2017年5月4日

N! (大数,优化)

摘要: Problem Description 输出N的阶乘。(注意时间限制150ms&&注意不能打表后输出)打表的定义:在本地主机预先计算出了每个值对应的答案,并把输入和输出的映射直接写入所提交的代码。 Input 多组输入到文件结尾每组输入一个整数n,(0<=n<=23)。 Output 每组测试数据输 阅读全文

posted @ 2017-05-04 09:36 夏晴天 阅读(386) 评论(0) 推荐(0) 编辑

2017年5月1日

Jungle Roads

摘要: Jungle RoadsThe Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages s 阅读全文

posted @ 2017-05-01 11:42 夏晴天 阅读(123) 评论(0) 推荐(0) 编辑

Agri-Net

摘要: Farmer John has been elected mayor of his town! One of his campaign promises was to bring internet connectivity to all farms in the area. He needs you 阅读全文

posted @ 2017-05-01 11:29 夏晴天 阅读(157) 评论(0) 推荐(0) 编辑

2017年4月26日

畅通工程

摘要: 畅通工程 某省调查城镇交通状况,得到现有城镇道路统计表,表中列出了每条道路直接连通的城镇。省政府“畅通工程”的目标是使全省任何两个城镇间都可以实现交通(但不一定有直接的道路相连,只要互相间接通过道路可达即可)。问最少还需要建设多少条道路? Input 测试输入包含若干测试用例。每个测试用例的第1行给 阅读全文

posted @ 2017-04-26 17:42 夏晴天 阅读(93) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页

导航

Live2D