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 1777. Anindilyakwa

give same tests please
Posted by Nikolay 9 Oct 2010 14:40
Re: give some tests please
Posted by Maria Tereshina 5 Jul 2011 20:08
1 1 2
1

1 2 3
2

234 532 245
3

12345 87654 23456
4

1223456 8098887645 567321
4

12345 654345678 1234567890
5

Edited by author 05.07.2011 20:09
Re: give some tests please
Posted by Sepehr 1 Sep 2011 22:55
Hey Maria,
Problem states that the input, consists of 3 space-separated pairwise DISTINCT integers so your first example doesn't satisfy conditions and hence, is useless.

Regards,
Sepehr
Re: give some tests please
Posted by Nic Roets 2 Sep 2011 01:27
99 8 1
3
Re: give some tests please
Posted by hopless dreamer 14 Sep 2011 18:37
Maria , for test number 4, I think the answer should be 3 :
First aborigine brings a pile of 75309 ( 87654-12345 ) , the second aborigine also brings a pile of 75309 stones , because that's still the biggest difference , and the third points to the two equal piles. Correct me if I'm wrong!
Re: give some tests please
Posted by bigtik 16 Nov 2011 04:18
thanks :) got AC after testing you input and fixing the program
P.S. long in JAVA is enough!!!!
Re: give some tests please
Posted by Afli 10 Jun 2012 14:18
hopless dreamer,
No, u r wrong. The FIRST aborigine will bring the pile of 64198 stones, becouse it's the LEAST. And the second aborigine will bring the pile of 64198 - 23456 = 40742 stones and so on.
Re: give some tests please
Posted by thakohov 6 Jul 2012 18:07
"Professor asked one of the aborigines to point at two piles with the MINIMAL difference of numbers of stones in them and tell what this difference is."

Edited by author 06.07.2012 18:07

Edited by author 06.07.2012 18:07
Re: give some tests please
Posted by Dron-elektron 21 Dec 2013 22:52
Big thx :) got AC