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 1931. Excellent Team

test 2??
Posted by LyanA 10 Nov 2012 16:46
even no idea
tried this
10
3 5 6 7 2 8 9 7 5 6 5
get 5
Re: test 2??
Posted by Radostin Chonev 26 Sep 2013 21:05
My error was that I didn't check after the end of the loop if my current numbers of swaps is bigger than the now kept max .

Try this test :
8
2 3 4 1 5 6 7 8

Answer : 4
Re: test 2??
Posted by TUITUF_Temurbek 25 Mar 2014 20:09
check this test:
7
2 3 4 1 5 6 7

Answer : 4