[Timus] 2001 Mathematicians and Berries

Problem statement is here: http://acm.timus.ru/problem.aspx?space=1&num=2001

public void solve(int testNumber, InputReader in, OutputWriter out) {
        int a1 = in.nextInt();
        int b1 = in.nextInt();
        int a2 = in.nextInt();
        int b2 = in.nextInt();
        int a3 = in.nextInt();
        int b3 = in.nextInt();

        out.println((a1 - a3) + " " + (b1 - b2));


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.