PAT1082

#include 
#include 

using namespace std;

int main() {
    int N;
    string ansMax,ansMin,id;
    double x,y,Max,Min;
    cin>>N;
    for(int i = 0;i>id>>x>>y;
        double t = x*x + y*y;
        if(i == 0)
        {
            Max = t;
            Min = t;
            ansMax = id;
            ansMin = id;
        }
        else
        {
            if(t>Max)
            {
                Max = t;
                ansMax = id;
            }
            if(t

 

你可能感兴趣的:(PAT)