s>>x>>y;if( (x*x + y*y) > lmax ){lmax = (x*x + y*y);smax = s;}if( (x*x + y*y)。1082|1082 射击比赛。" />

1082|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<

    推荐阅读