1082 射击比赛

int main()
{
    //freopen("D:\\文件夹\\Desktop\\use.txt","r",stdin);
    int n;scanf("%d",&n);getchar();
    string smin,smax;int lmin=10001,lmax=-1;
    for(int i = 0;i < n;++i){
        string s;int x,y;
        cin>>s>>x>>y;
        if( (x*x + y*y) > lmax ){lmax = (x*x + y*y);smax = s;}
        if( (x*x + y*y) < lmin ){lmin = (x*x + y*y);smin = s;}
        
    }
    cout<

你可能感兴趣的:(1082 射击比赛)