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

Accepted C#
Posted by Developer 14 May 2014 17:51
using System;
using System.Linq;
using System.Text;

namespace Bicycle_Codes
{
    class Program
    {
        static void Main(string[] args)
        {
            int c1 = int.Parse(Console.ReadLine());
            int c2 = int.Parse(Console.ReadLine());
            if (c1 % 2 == 0 || c2 % 2 != 0)
                Console.WriteLine("yes");
            else if (c1 % 2 != 0 || c2 % 2 == 0)
                Console.WriteLine("no");

            //Console.ReadKey();
        }
    }
}