摘要: 高斯消元 #include <iostream> #include <cstring> #include <algorithm> #include <cmath> #include <iomanip> using namespace std; typedef long long ll; const 阅读全文
posted @ 2022-05-26 19:12 hzy0227 阅读(14) 评论(0) 推荐(0) 编辑
摘要: st表 #include <iostream> #include <cstring> #include <cmath> using namespace std; const int N = 2e5 + 10, M = 18; int f[N][M], a[N]; int n, m; void ini 阅读全文
posted @ 2022-05-26 15:18 hzy0227 阅读(24) 评论(0) 推荐(0) 编辑
摘要: Arbitrage 判正环 套利问题,给出若干对货币兑换的汇率,求能否通过汇率兑换使钱越来越多 floyd求最长路,如果某一点到自身的最长路大于 1, 则可以 tarjan 判正环 #include <iostream> #include <cstring> #include <algorithm> 阅读全文
posted @ 2022-05-26 11:17 hzy0227 阅读(30) 评论(0) 推荐(0) 编辑