Woburn Challenge 2015-16 Round 1 - Junior Division

Problem 1: Do You Know Your Woburn Colours?

Welcome to the first Woburn Challenge in over a decade! We hope you find these contests fun and challenging.
Let's start by getting to know Woburn a little more. Woburn's school cheer is the legendary Wildcat Song, and it starts like this:

CHEER! CHEER! FOR WOBURN...
CHEER WITH ALL YOUR MIGHT.
CHEER FOR OUR COLOURS,
RED AND BLUE AND WHITE.

A true Woburnite obviously knows Woburn's colours by heart.
Do you think you have what it takes to identify them?

Given any two of the three Woburn colours in no particular order, your task is to name the third one.

Input Format

There will be two lines of input given to your program. Each line will contain one of Woburn's colours in all uppercase letters.
Each of the colours will be one of "RED", "BLUE", or "WHITE" (without quotation marks), and the two colours given are guaranteed to be distinct.

Output Format

Output a single line containing the Woburn colour that was not mentioned in the input. Your output must be in all uppercase.

Sample Input

RED
BLUE

Sample Output

WHITE

All Submissions
Best Solutions


Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Oct 17, 2015
Authors: Alex, SourSpinach

Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3

Comments (Search)

Why does my code not output anything?

Google "compare strings in Java."

In my code, i know everything is correct and there's no syntax errors. But when i enter it, it says that the words BLUE, RED and WHITE are not defined. PLs help me!

You need double quotes around strings.

a="RED"
, not
a=RED