You are not logged in. Please login at to post your questions!


WA in spoj PRATA

Can anybody tell me where I have made mistake?

My solution

p.s. How can I use priority queue in it?

asked 25 Jul '15, 09:50

dragonemperor's gravatar image

accept rate: 10%

edited 25 Jul '15, 09:50

You can have a look at My solution using priority queue. Also my binary search approach is here.


answered 25 Jul '15, 10:17

vedprakash121's gravatar image

accept rate: 7%

Thank you for your reply. I saw your binary search approach. My approach also looks same. You generated the amount of prata using a formula. I used an iterative approach. But it gives the same thing. Where have I made mistake?

(25 Jul '15, 18:29) dragonemperor3★
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 25 Jul '15, 09:50

question was seen: 1,077 times

last updated: 25 Jul '15, 18:29