@@ -0,0 +1,710 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        while (true) %7B%0A%0A            int n = sc.nextInt();%0A%0A            if (n == 0) %7B%0A                break;%0A            %7D%0A%0A            int id = 0;%0A            int distanceMax = 0;%0A%0A            for (int i = 0; i %3C n; i++) %7B%0A%0A                int idCurrent = sc.nextInt();%0A                int distance = sc.nextInt() + sc.nextInt();%0A%0A                if (distanceMax %3C distance) %7B%0A%0A                    id = idCurrent;%0A                    distanceMax = distance;%0A%0A                %7D%0A%0A            %7D%0A%0A            System.out.println(id + %22 %22 + distanceMax);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0217