Problem A
Veggurinn, seinni hluti
Languages
en
is
When Trump’s contractors have built the wall then Trump calls Maggi the painter:
TRUMP: “I need you to paint my wall. The builders have no clue how to do it. Sad!”
MAGGI: “Ok, what colour should it be?”
TRUMP: “It should be great: Orange like my beautiful face!”
MAGGI: “Ok, I’ll show up with orange paint.”
The wall is
Maggi sometimes gets confused and thus sometimes paints over
units that he has already painted. And now after
Input
The first line of the input contains two integers
Output
Print the number of units Maggi painted and then print “The
Mexicans took our jobs! Sad!” if that value is greater than
Scoring
The solution will be tested on input data of varying difficulty and the data is divided into groups as shown in the table below. The solution will then be scored according to how many groups are solved.
Group |
Points |
Constraints |
1 |
30 |
|
2 |
30 |
|
3 |
40 |
|
Sample Input 1 | Sample Output 1 |
---|---|
100 5 1 10 9 20 20 30 50 70 55 80 |
61 The Mexicans took our jobs! Sad! |