1 条题解

  • 0
    @ 2024-11-5 0:23:09

    #include<bits/stdc++.h> using namespace std;

    int main() { int n;

    int d,g;
    
    while(scanf("%d",&n)!=EOF)
    {
    	int down=0,up=0;
    	
    	for(int i=1; i<=n; i++)
    	{
    		cin>>d>>g;
    		down+=d;
    		up+=g;
    	}
    	
    	if(down==up)
    		cout<<"amazing!"<<endl;
    	else if(down<up)
    		cout<<"xmsl"<<endl;
    	else
    		cout<<"ni yao tu le"<<endl;
    	
    }
    
    return 0;
    

    }

    • 1

    信息

    ID
    235
    时间
    10000ms
    内存
    256MiB
    难度
    7
    标签
    递交数
    401
    已通过
    99
    上传者