Company: codechef

Difficulty: easy

Problem Statement

Ada Lovelace, the world's first computer programmer, possessed a remarkable problem-solving genius. Her ability to look at mechanical engines and see the future of algorithmic logic continues to inspire coders today. Ada is configuring the gears of the Analytical Engine. She has exactly 3 gears, each with a specific number of teeth. The engine will only run smoothly if the sum of the teeth on all gears is an even number. You are given three integers representing the number of teeth on each gear. Determine if the sum of the gears is even or not. Input Format The first and only line of input contains three space-separated integers A , B and C , representing the number of teeth on the first, second and third gear respectively. Output Format Print YES if the sum is even, and NO otherwise. The original judge accepts any letter case; this judge compares output exactly, so print YES / NO in uppercase. Constraints 1 ≤ A, B, C ≤ 100 Time limit 1 second, memory limit 1.5 GB Sample 1 Input

More codechef OA questionsInterview experiences