[Timus] 1877 Bicycle Codes

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

public void solve(int testNumber, InputReader in, OutputWriter out) {
        int firstLock = in.nextInt();
        int secondLock = in.nextInt();

        if(firstLock%2==0 || secondLock%2==1) {
            out.println("yes");
            return;
        }

        out.println("no");
    }

 

 

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.