1 条题解

  • 1
    @ 2025-10-05 21:13:43

    链接

    制造(oi00006)


    AC代码:

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b,c,d,e,f,g;
        int x[10000];
        cin>>a;
        for(b=1;b<=a;b=b+1)
        {
            cin>>x[b];
        }
        cin>>c;
        for(b=1;b<=a;b=b+1)
        {
            cout<<b<<" ";
            if(x[b]==c)
            {
                cout<<"500"<<endl;
            }
            else if(x[b]<c)
            {
                cout<<"0"<<endl;
            }
            else if(x[b]>c && x[b]<=c+3)
            {
                cout<<"800"<<endl;
            }
            else
            {
                cout<<"1000"<<endl;
            }
        }
        return 0;
    }
    
  • 1

信息

ID
1005
难度
9
分类
(无)
标签
(无)
递交数
3
已通过
1
通过率
33%
上传者