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

×

WA in spoj PRATA

Can anybody tell me where I have made mistake?

Problem
My solution

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

asked 25 Jul '15, 09:50

dragonemperor's gravatar image

3★dragonemperor
89321135
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.

link

answered 25 Jul '15, 10:17

vedprakash121's gravatar image

4★vedprakash121
12317
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
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×1,056

question asked: 25 Jul '15, 09:50

question was seen: 1,077 times

last updated: 25 Jul '15, 18:29