上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 33 下一页
摘要: 1 #include //SPFA 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int maxn = 105; 9 const int INF = 0xfffffff; 10 11 struct node 12 { 13 int y, time; 14 ... 阅读全文
posted @ 2018-05-21 21:28 ouyang_wsgwz 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 大佬的博客:https://blog.csdn.net/creatorx/article/details/71100840 hdu6208 阅读全文
posted @ 2018-05-15 19:23 ouyang_wsgwz 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 typedef long long ll; 8 int n, m; 9 const int maxn = 105; 10 const int MOD = 1e9 + 7; 11 12 struct node{ 13 l... 阅读全文
posted @ 2018-05-14 19:08 ouyang_wsgwz 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 //bellman_ford判断负环 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int maxn = 200 + 5; 9 10 int n,m; 11 double v; 12 struct node{ 13 int u, v; 14 ... 阅读全文
posted @ 2018-05-10 20:51 ouyang_wsgwz 阅读(288) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <algorithm> 3 #include <string> 4 #include <cstring> 5 using namespace std; 6 7 int n, m; 8 const int maxn = 105; 9 i 阅读全文
posted @ 2018-05-10 20:05 ouyang_wsgwz 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 const int INF = 0x3f3f3f3f; 7 const int maxn = 50005; 8 int n, w, m, k, dis[maxn]; 9 10 struct node 11 { 12 int u, v, w; 13 ... 阅读全文
posted @ 2018-05-10 13:40 ouyang_wsgwz 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1 //两次dijkstra 2 #include 3 #include 4 5 #define Faster ios::sync_with_stdio(false),cin.tie(0) 6 #define Read freopen("in.txt","r",stdin),freopen("out.txt","w",stdout) 7 #define Close fclos... 阅读全文
posted @ 2018-05-10 10:01 ouyang_wsgwz 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1 //改版dijkstra 2 #include 3 #include 4 5 #define Faster ios::sync_with_stdio(false),cin.tie(0) 6 #define Read freopen("in.txt","r",stdin),freopen("out.txt","w",stdout) 7 #define Close fclos... 阅读全文
posted @ 2018-05-10 08:53 ouyang_wsgwz 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.*; 2 import java.io.*; 3 import java.lang.String; 4 import java.math.BigDecimal; 5 import java.math.BigInteger; 6 7 public class Main 8 { 9 public static vo... 阅读全文
posted @ 2018-05-09 21:02 ouyang_wsgwz 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 typedef long long LL; 7 8 LL Eular(LL m) 9 { 10 LL res = m; 11 for(LL i=2; i*i 1) 21 res -= res/m; 22 ret... 阅读全文
posted @ 2018-05-09 19:52 ouyang_wsgwz 阅读(119) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 33 下一页