Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
146044 周子博 货币系统 C++ 编译错误 0 0 MS 0 KB 493 2024-05-07 14:00:48

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int a,b,c,d,e[114],f[24]; int dengjia() { int u,v[114]={0},w=0,x,y,z; v[1]=e[1]; for(u=2;u<=c;u++) { x=0; for() { } if(x==1) { w++; v[w]=e[u]; } } return w; } int main() { cin>>a; for(b=1;b<=a;b++) { memset(e,0,sizeof(e)); cin>>c; for(d=1;d<=c;d++) cin>>e[d]; sort(e,e+c+1,greater<int>()); f[b]=dengjia(); } for(b=1;b<=a;b++) cout<<f[b]<<endl; return 0; }


测评信息: