20分求助!!!!

P5740 【深基7.例9】最厉害的学生

``` for(int i=1;i<=3;i++) { if(maxl==sum[i]) { cout<<na[i]<<" "; cout<<yu[i]<<" "<<shu[i]<<" "<<yin[i]; return 0; } } ``` 为什么是小于等于3(不应该是n吗?)
by liu_le_chen @ 2023-08-16 15:36:56


改了以后就[AC](https://www.luogu.com.cn/record/121211944)
by liu_le_chen @ 2023-08-16 15:40:30


16行应该是 i<=n
by gotocspandbetter @ 2023-08-16 15:43:43


@[liulechen](/user/1037273) 呜呜呜,谢谢大佬,脑子抽抽啦
by whx090128 @ 2023-08-16 16:04:54


|