2017ccpc女生赛

摘要: 6023 模拟 6025 前缀和思想 6027 基础取模 6030 递推+矩阵快速幂(构造矩阵) 阅读全文
posted @ 2019-05-30 21:30 stagelovepig 阅读(307) 评论(0) 推荐(1) 编辑

hdu6024

摘要: #include #include #include using namespace std; typedef long long ll; const int maxn = 3010; const ll INF = 1e9; struct Node { int pos, cost; }node[maxn]; //int pos[maxn], cost[maxn]; ll dp[maxn]... 阅读全文
posted @ 2019-05-30 21:13 stagelovepig 阅读(155) 评论(0) 推荐(0) 编辑

hdu6026

摘要: #include #include #include #include using namespace std; typedef long long ll; const int maxn = 60; const int INF = 0x3f3f3f3f; const int MOD = 1e9 +7; int d[maxn]; char s[maxn][maxn]; int dis[maxn][... 阅读全文
posted @ 2019-05-30 09:18 stagelovepig 阅读(126) 评论(0) 推荐(0) 编辑

蓝桥杯 城市建设

摘要: 1 #include 2 using namespace std; 3 const int maxn = 1e5 + 10; 4 const int INF = 1e9; 5 struct Edge 6 { 7 int u, v; 8 int dis; 9 }edge[maxn * 100]; 10 int n, m; 11 int cnt... 阅读全文
posted @ 2019-05-29 23:10 stagelovepig 阅读(173) 评论(0) 推荐(0) 编辑

DAG图拓扑 + dp

摘要: #include #include #include #include #include #include #include using namespace std; int n, m, T; struct Node { int to; int dis; Node(){} Node(int x, int y) { to = x; ... 阅读全文
posted @ 2019-05-23 21:45 stagelovepig 阅读(511) 评论(0) 推荐(0) 编辑

蓝桥杯 dfs系列

只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2019-05-22 23:30 stagelovepig 阅读(5) 评论(0) 推荐(0) 编辑