上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: #include<cstdio> #include<iostream> #include<algorithm> #include<cstring> using namespace std; const int maxn = 1000; struct Bigint { int len, a[maxn] 阅读全文
posted @ 2021-02-26 18:13 loliconsk 阅读(91) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<algorithm> #include<vector> #include<queue> using namespace std; int n, m; void topo(vector<int>& rec, qu 阅读全文
posted @ 2021-02-21 15:55 loliconsk 阅读(55) 评论(0) 推荐(0)
摘要: 有n个物品的重量和价值分别是wi和vi.从中选出k个物品使得单位重量的价值最大 #include<cstdio> #include<iostream> #include<algorithm> using namespace std; const int INF = 9999999; const in 阅读全文
posted @ 2021-02-19 22:54 loliconsk 阅读(59) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> using namespace std; int main(void) { const int n = 5; const int k = 3; int a[5] = { 2,3,3,5,6 }; int lb = -1, ub 阅读全文
posted @ 2021-02-19 10:22 loliconsk 阅读(37) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<map> #include<iostream> #include<algorithm> using namespace std; typedef pair<double, double> p; typedef multimap<double, p, 阅读全文
posted @ 2021-02-10 17:58 loliconsk 阅读(76) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<cstring> #include<iostream> #include<list> using namespace std; int main(void) { string s; while (cin >> s) { list<char> ch; 阅读全文
posted @ 2021-02-10 12:57 loliconsk 阅读(109) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int maxsum(int* A, int x, int y)//可以求[x,y)上的最大连续和 { if (y - x == 1)return 阅读全文
posted @ 2021-02-09 11:40 loliconsk 阅读(62) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<algorithm> using namespace std; bool solve(int &w) { int w1, w2, d1, d2; cin >> w1 >> d1 >> w2 >> d2; boo 阅读全文
posted @ 2021-02-08 19:29 loliconsk 阅读(89) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<algorithm> #include<sstream> using namespace std; const int maxn = 100005; int LT[maxn], RT[maxn]; int mi 阅读全文
posted @ 2021-02-08 16:48 loliconsk 阅读(77) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<set> #include<algorithm> using namespace std; set<int> s; int main(void) { int R, n; while (cin >> R >> n 阅读全文
posted @ 2021-02-07 20:54 loliconsk 阅读(79) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 14 下一页