1 条题解

  • 0
    @ 2025-8-22 21:10:39
    #include <bits/stdc++.h>
    using namespace std;
    int y = 0,n = 0,s = 0;
    int main()
    {
        for(int i=1;i<=12;i++)
        {
            cin>>y;
            n = n+300-y;
            if(n<0)
            {
                cout<<"-"<<i;
                return 0;
            }
            while(n>=100)
            {
                n = n-100;
                s = s+100;
            }
        }
        cout<<s*1.2+n;
    }
    
    • 1

    信息

    ID
    555
    时间
    1000ms
    内存
    256MiB
    难度
    10
    标签
    (无)
    递交数
    3
    已通过
    3
    上传者