# PROBLEM LINK: Contest Page | CodeChef

Practice

Author: Setter’s name

Tester: Tester’s name

Editorialist: Editorialist’s name

DIFFICULTY : EASY

Nill

# PROBLEM:

Let’s help the election commission…… For an election,candidates will receive the nomination forms from different parties. There are two parties competing for the election. Each party can have only one candidate to compete for a position, so one candidate has to be selected from each party if there are more than one candidate from the same party. Suppose 2 candidates from party A files nomination print an ‘A’ representing a selected candidate from party A.

Similarly if one candidate from A and one from B print ‘AB’ representing selected candidates from both A&B.

# QUICK EXPLANATION:

Take two inputs from the user and print both values or only one accordingly.

# EXPLANATION:

Two inputs would be read from the user and depending on whether both the values are same or different both the values would be printed as it is or only one input would be printed back.

# SOLUTIONS:

Setter's Solution

,>,

[-<->>+<]

<[

[-<+<+>>]

<<.[-]

.[-]

<]

[

.[-]

]<<

Tester's Solution

Same Person

Editorialist's Solution

Same Person