摘要: 迪杰斯特拉算法--O(n^2) #include"iostream" #include"cstring" #include"cstdio" using namespace std; const int inf = 0x3f3f3f3f; typedef long long LL; int map[1 阅读全文
posted @ 2018-09-20 21:20 Jathon-cnblogs 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 快速幂(本代码中的^表示次幂不是异或) Accepted 1061 0MS 1368K 679 B G++ #include "bits/stdc++.h" using namespace std; const int MOD = 10; int quick_pow(int n, int m) { 阅读全文
posted @ 2018-09-20 16:33 Jathon-cnblogs 阅读(103) 评论(0) 推荐(0) 编辑