ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1901. Space Elevators

Easy ~
Posted by [RISE] Levon Oganesyan [RAU] 10 Jul 2014 03:46
The answer of simple test not one, right this answer too:

6 6
1 2 3 3 4 5
5
2 5 3 4 3 1

It's hepled me.

Sorry, for bad English.

Some tests:
6 6
1 2 3 4 5 6
6
1 6 2 5 3 4


6 3
1 2 3 2 1 1
5
1 3 2 2 1 1


10 10
6 3 4 5 2 10 10 5 4 1
8
1 10 2 10 5 6 5 4 4 3


1 6
6
1
6


2 3
3 3
2
3 3


3 3
2 2 1
2
2 2 1


3 3
2 3 2
3
2 3 2


3 3
2 2 3
3
2 3 2


3 3
1 1 3
3
1 3 1


6 6
5 5 5 1 1 1
4
5 5 5 1 1 1


6 7
6 6 6 2 2 2
6
2 6 2 6 2 6


6 8
6 6 6 2 2 2
4
6 6 6 2 2 2

Edited by author 10.07.2014 03:47