摘要: 删除元素时间限制:1000ms | 内存限制:65535KB难度:2描述题意很简单,给一个长度为n的序列,问至少删除序列中多少个数,使得删除后的序列中的最大值#include using namespace std;int a[100001];int main(){ int t,i,j,k,max; while(scanf("%d",&t)==1) { for(i=0;imax) max=k; } printf("%d\n",t-max); } return 0;}View Code二分已过:#inc... 阅读全文
posted @ 2013-10-21 22:50 ABCDL 阅读(195) 评论(0) 推荐(0) 编辑