moonlight问题

我的代码老是出问题 有哪位大佬帮我看看吗

#include<stdio.h>
int main()
{
    int t,n,i,x,l;
    int m=0;
    int arr[]={0};
    scanf(&quot;%d\n&quot;,&amp;t);
    for(i=1;i<=t;i++)
    {
        scanf(&quot;%d\n&quot;,&amp;n);
        for(x=0,m=0;x<n;x++)
        {
            scanf(&quot;%d&quot;,&amp;arr[x]);
            if(m>1&amp;&amp;m<200000)
            {
                 m*=arr[x];
            }
            else
            {
                m+=arr[x];
            }
        }
        l=m%998244353;
        printf(&quot;%d\n&quot;,l);
    }
}
全部评论
寒假实习的朋友看过来!海外游戏公司 base 北京 c++后台实习生招聘,可以转正!日薪500 提供住宿,https://www.nowcoder.com/discuss/553627529161007104
点赞 回复 分享
发布于 2023-11-21 00:40 湖北

相关推荐

不愿透露姓名的神秘牛友
07-29 11:57
投递浪潮等公司10个岗位
点赞 评论 收藏
分享
牛客34884196...:你期望薪资4-5k,那确实可以重生了,但很难在深圳活下去
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务