Program time limit: 3 seconds
Program memory limit: 256 MB
Déjà vu? Sometimes even the greatest poets write stuff that looks similar to what they’ve written before. No one knows what this could mean. I Might just be Ceeing too much into this. Wait, don’t I write "see" with an s? Maybe it’s fine if I leave it as is, since I’m a great poet.
You should read from standard input.
You should write to standard output.
4 6
1 2
2 3
3 2
1 3
3 4
4 3
1
2
4
4
5
9
Your program will be tested on the sample case and several hidden cases. If it produces the correct output for all test cases, it will be considered correct. Recall that your final score for this problem is the score of your highest-scoring submission.
The contest ended at 8:45 p.m. AEST on Tuesday 7th April. All submissions will be unofficial officially.
Log in to submit!