摘要: 题意是给你五个轮子, 每个轮子上有一些开口, 现在每个轮子从0位置开始转动,问最短啥时候5个轮子的开口相遇,刚开始看这道题的时候没啥思路, 就像等到最后在写,最后还没思路看了题解, 直接模拟就行, 代码如下:(注意处理边界,他不是离散的360个口,而是一个区间。/* ID: m1500293... 阅读全文
posted @ 2015-12-29 22:54 xing-xing 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 多次使用dijkstra就行, 代码如下: /* ID: m1500293 LANG: C++ PROG: butter*/#include #include #include #include #include using namespace std;int N, P, C... 阅读全文
posted @ 2015-12-29 21:42 xing-xing 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 使用康拓展开判重就行, 代码如下:/* ID: m1500293 LANG: C++ PROG: msquare*/#include #include #include #include #include #include using namespace std;int tar... 阅读全文
posted @ 2015-12-29 21:40 xing-xing 阅读(155) 评论(0) 推荐(0) 编辑