Editorial for Mock CCC '20 Contest 1 J1 - A Rage Tree Problem

Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.

Submitting an official solution before solving the problem yourself is a bannable offence.

For 5 marks, print the first integer in the input twice.

For 10 marks, print the first integer in the input, then print the last integer in the input.

For full credit, it suffices to compare each number with the other three. You can also use expressions such as \min(\min(a, b), \min(c, d)) and \max(\max(a, b), \max(c, d)).


There are no comments at the moment.