@@ -0,0 +1,668 @@
+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).useDelimiter(%22,%7C%5C%5Cn%22);%0A%0A        double x = 0;%0A        double y = 0;%0A%0A        int theta = 90;%0A%0A        while (true) %7B%0A%0A            int distance = sc.nextInt();%0A            int angle = sc.nextInt();%0A%0A            if (distance == 0 && angle == 0) %7B%0A                break;%0A            %7D%0A%0A            x += distance * Math.cos(Math.toRadians(theta));%0A            y += distance * Math.sin(Math.toRadians(theta));%0A%0A            theta -= angle;%0A%0A        %7D%0A%0A        System.out.println((int) x);%0A        System.out.println((int) y);%0A%0A    %7D%0A%0A%7D%0A

Create : 0016