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

This is running well on Java
Posted by Farruh-WIUT 19 Feb 2015 02:23
import java.util.Scanner;

/**
 * Created by macbookpro on 2/19/15.
 */
public class JavaThieves877 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int c1 = Integer.parseInt(scanner.nextLine());
        int c2 = Integer.parseInt(scanner.nextLine());

        if(c1 % 2==0 || c2 % 2!=0 )
        {
            System.out.print("Yes");
        }
        else if(c1 % 2 != 0 || c2% 2== 0)
        {
            System.out.print("No");
        }
    }
}
Re: This is running well on Java
Posted by bodziozet 21 Jun 2017 04:44
Nevermind I didn't read that this is running well:)

Edited by author 21.06.2017 04:49