摘要: 1 2 3 4 5 6 7 8 9 10 11 12 #include <bits/stdc++.h> typedef long long LL; using namespace std; int main() { int n; double a[100010]; double sum = 0; c 阅读全文
posted @ 2017-03-02 23:49 bestwzh 阅读(120) 评论(0) 推荐(0) 编辑
摘要: PAT 1054 网上看到的,很好的应用了这两个函数。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 #include <bits/stdc++.h> usin 阅读全文
posted @ 2017-03-02 22:03 bestwzh 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 挖坑 阅读全文
posted @ 2017-03-02 01:29 bestwzh 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 挖坑 阅读全文
posted @ 2017-03-02 01:28 bestwzh 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 挖坑 阅读全文
posted @ 2017-03-02 01:27 bestwzh 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 挖坑 阅读全文
posted @ 2017-03-02 01:25 bestwzh 阅读(92) 评论(0) 推荐(0) 编辑
摘要: HDU 1232 裸的并查集 戳我直达 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 #include <bits/stdc++.h> using namespace std; const int maxn = 1000 + 10; in 阅读全文
posted @ 2017-03-02 01:19 bestwzh 阅读(83) 评论(0) 推荐(0) 编辑
摘要: HDU 1874 畅通工程续 戳我直达 题意:求s到t的最短路径。最简单的最短路径题。 做法:Dijkstra 或 floyd 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 阅读全文
posted @ 2017-03-02 00:46 bestwzh 阅读(151) 评论(0) 推荐(0) 编辑