摘要:
#include<cstdio> #include<iostream> #include<algorithm> #include<vector> #include<queue> using namespace std; int n, m; void topo(vector<int>& rec, qu 阅读全文
摘要:
#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 阅读全文
摘要:
#include<cstdio> #include<iostream> #include<algorithm> using namespace std; int maxsum(int* A, int x, int y)//可以求[x,y)上的最大连续和 { if (y - x == 1)return 阅读全文
摘要:
#include<cstdio> #include<iostream> #include<algorithm> #include<sstream> using namespace std; const int maxn = 100005; int LT[maxn], RT[maxn]; int mi 阅读全文
摘要:
#include<cstdio> #include<iostream> #include<set> #include<algorithm> using namespace std; set<int> s; int main(void) { int R, n; while (cin >> R >> n 阅读全文