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 1306. Sequence Median

Again WA on #5
Posted by Zhora 20 Sep 2015 08:16
Update:
Please ignore - found a small bug in my implementation of heap.
******
My code works fine on
3
4294967295
4294967295
4294967295

and

4
4294967295
4294967295
4294967295
4294967295

what can that be?

If I use stl:priority_queue instead of my own heap based pq without making any other changes in the code, I get MLE on #7, i.e. #6 passes.

Edited by author 21.09.2015 01:41

Edited by author 21.09.2015 01:41