ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1877. Bicycle Codes

I need you help, nice folks...Its not working in Java..its correct
Posted by Farruh-WIUT 19 Feb 2015 02:37
import java.util.Scanner;
public class JavaThieves877 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int c1 = Integer.parseInt(scanner.next());
        int c2 = Integer.parseInt(scanner.next());

        if (c1 % 2 == 0 || c2 % 2 != 0) {
            System.out.print("Yes");
        } else if (c1 % 2 != 0 || c2 % 2 == 0) {
            System.out.print("No");
        }
    }
}