1920 最远


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

直角坐标系中,一群坐标,离原点最远是多少呢?

Input

若干群直角坐标点,每个群起始为一个整数n,后面跟有n个坐标。坐标用一对小数x,y表示(-100000.0<x,y<100000.0)。

Output

每群坐标以一行的格式输出离原点最远的距离,四舍五入保留2位小数。

Sample

Input

2
1.3 3.0
2.0 3

Output

3.61

Source: qn


Comments

There are no comments at the moment.