Contest 1 - Hints to Problems [OFFICIAL]

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

Edit:

If it’s this: consider the test input:

1                        
2 7 9