随笔分类 -  题解标程

摘要:P4944 #include <algorithm> #include <cstdio> #include <iostream> #include <queue> #include <vector> const int maxn = 205; const int maxk = 105; const 阅读全文
posted @ 2020-10-04 13:28 Macesuted 阅读(64) 评论(0) 推荐(0)
摘要:题面 #include <bits/stdc++.h> using namespace std; enum chess //棋子种类 { NA, //无(这个位置是空的) captain, //王 guard, //士 elephant, //象 horse, //马 car, //车 duck, 阅读全文
posted @ 2020-05-14 07:20 Macesuted 阅读(73) 评论(0) 推荐(0)
摘要:P2014 #include <bits/stdc++.h> using namespace std; vector<vector<int> > graph; vector<int> cost; int n,m; int f[2005][2005]; int dfs(int node) { int 阅读全文
posted @ 2020-01-18 17:18 Macesuted 阅读(130) 评论(0) 推荐(0)
摘要:P2482 #include <iostream> #include <fstream> #include <vector> #include <cstdlib> using std::cout; using std::endl; using std::cin; using std::ios; #d 阅读全文
posted @ 2019-11-29 20:35 Macesuted 阅读(204) 评论(0) 推荐(0)
摘要:P2278 #include <cstdio> #include <queue> struct task { int number; int need; int get; int grade; inline bool operator < (const task &b) const { return 阅读全文
posted @ 2019-11-29 12:38 Macesuted 阅读(146) 评论(0) 推荐(0)