关于图书网站建设的书籍,网站水军怎么做,虚拟主机可以做视频网站嘛,如何自己开发微网站地址#xff1a;http://codeforces.com/contest/270/problem/D 这题看过别人代码#xff0c;理解了好久 本来觉得这题和USACO里的三值的排序是一样的#xff0c;但是USACO里通不过......看来还得想 1 #include iostream2 #include algorithm3 using namespa…地址http://codeforces.com/contest/270/problem/D 这题看过别人代码理解了好久 本来觉得这题和USACO里的三值的排序是一样的但是USACO里通不过......看来还得想 1 #include iostream2 #include algorithm3 using namespace std;4 5 int n,m,s[5001],p[5001];6 double x;7 8 int main()9 {
10 ios::sync_with_stdio(false);
11 int j;
12 cinnm;
13 for(int i0;in;i) cins[i]x;
14 m0;
15 for(int i0;in;i)
16 {
17 j(int)(upper_bound(p,pm,s[i])-p);
18 if(jm) p[m]s[i];
19 else p[j]s[i];
20 }
21 coutn-mendl;
22 return 0;
23 } 转载于:https://www.cnblogs.com/tjsuhst/archive/2013/02/10/2892375.html