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 1161. Stripies

WA with test#15
Posted by Md. Kamrul Islam 14 Mar 2009 14:32
I am getting WA for test#15 with my C++ code. Is there anybody who can give an explanation why this is happening?
Re: WA with test#15
Posted by White Falcon 6 Jul 2013 17:16
Try a to test with two same masses:

5
11
13
21
10000
10000

Then when you will understand what was your problem you will use

std::multiset<double, std::greater<double>> s;

Cheeres! ;)