2019 google kt H轮,求大佬帮忙看看
新手第一次做这个,一道题都没做出来😂,求大佬帮忙看看第一道的代码,不懂啥问题,提交WA
#include<iostream>
using namespace std;
const int N = 1e5 +10;
int a[N];
int main(){
int tc;
cin>>tc;
for(int t = 1;t<=tc;t++){
cout<<"Case #"<<t<<":";
int n;
cin >>n;
int point = 0;
int c = 1;
for(int i= 1;i<=n;++i){
int temp=0;
cin >> a[i];
for(int j=1;j<=i;++j){
if(a[j]>=c)temp+=1;
}
if(temp> point){
point = temp;
c+=1;
}
cout<<point<<" ";
}
cout<<"\n";
}
return 0;
} 
顺丰集团工作强度 334人发布