08 2018 档案
摘要:#include const int INF = 0x3f3f3f3f; using namespace std; int n,m; long long a[210][210]; //a[i][j] 表示从i到j位的这个数 long long dp[210][210]; //dp[i][j] 表示从前i位中划分出j次的最大乘积 long long x; void In...
阅读全文
摘要:1 #include 2 using namespace std; 3 int n; 4 int a[1010],t[1010],w[1010]; 5 int dp[200010]; 6 struct node 7 { 8 int l,r,value; 9 }num[100010]; 10 int cmp(node x,node y) 11 { 12 if(x...
阅读全文
摘要:1 nth_element(a+1 , a + m, a + n+1); 2 nth_element(first , mth, end); 3 区间【first,end)以第m个数为分界线前面都小,后面都大
阅读全文
摘要:1 #include 2 3 using namespace std; 4 const int N = 1Q[i].l) 58 { 59 L--; 60 add(L-1); 61 } 62 while(RQ[i].r) 68 { 69 del(R);...
阅读全文

浙公网安备 33010602011771号