摘要: #include int **matrix; int n,m; int main(){ register int i,j; scanf("%d%d",&n,&m); matrix=new int *[n]; for(i=0;i<n;++i) matrix[i]=new int [m]; for(i=0;i<n;++i) for(j=0;j<m;++j) scanf("%... 阅读全文
posted @ 2017-10-25 21:53 Stump 阅读(226) 评论(0) 推荐(0) 编辑
摘要: #include int a,b; char *ch; inline void read(int &x){ x=0;int f=0; while(*ch!='-'&&(*ch'9'))++ch; if(*ch=='-')f=1,++ch; while(*ch>='0'&&*ch<='9')x=(x<<1)+(x<<3)+*ch-48,++ch; f?x*=-1:x; } int m... 阅读全文
posted @ 2017-10-25 21:47 Stump 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 题目描述 花匠栋栋种了一排花,每株花都有自己的高度。花儿越长越大,也越来越挤。栋栋决定 把这排中的一部分花移走,将剩下的留在原地,使得剩下的花能有空间长大,同时,栋栋希 望剩下的花排列得比较别致。 具体而言,栋栋的花的高度可以看成一列整数h1,h2..hn。设当一部分花被移走后,剩下的花的高度依次为 阅读全文
posted @ 2017-10-25 21:28 Stump 阅读(151) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-10-25 11:29 Stump 阅读(6) 评论(0) 推荐(0) 编辑