摘要: 给定一个数组,统计前k大的数并且把这k个数从大到小输出。 阅读全文
posted @ 2016-08-05 17:37 浮华的终成空 阅读(356) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstdio>#include<cstring>using namespace std;int b,p,k,a;int intf(int p){ if(p==0) return 1; int t=intf(p/2)%k; t=(t*t)%k; i 阅读全文
posted @ 2016-08-05 15:54 浮华的终成空 阅读(140) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cstring>#include<cstdio>using namespace std;int a[20],f[20],n;int main(){ scanf("%d",&n); memset(f,1,sizeof f ); //f[1]=1; 阅读全文
posted @ 2016-08-05 14:33 浮华的终成空 阅读(88) 评论(0) 推荐(0)

Contact with me