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 1024. Permutations

My code in c++ works and I have AC, but I have WA2 with such code in Java . WHY
Posted by Mukhiddin 25 Jun 2009 10:36
this is my code in java:
[code deleted]

Edited by moderator 04.12.2019 20:55
Re: My code in c++ works and I have AC, but I have WA2 with such code in Java . WHY
Posted by lenant 6 Jul 2009 15:43
I don't know java, but probably it would help you: i think answer in second test is 1 and test is smth like
3
1 2 3
my prog printed 0 in such a case, while right answer is 1, that's why i had wa... maybe there is same problem in your algo?