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

×

PROSORT 2018 Esya2018 IIIT Delhi

I think there is some bug with problem A. Problem Link

Consider these two links

link1 This one is giving me WA.

link2 This got me AC.

These solutions are exactly same except a fixed keyword which does nothing but prints fixed number of digits after decimal point. It shouldn't give any sort of error.

Tell me if I'm wrong.

asked 18 Aug, 12:24

arjitkansal's gravatar image

4★arjitkansal
555
accept rate: 0%

edited 18 Aug, 12:31


Without using fixed, setprecision defines the total number of digits to be printed, not the total number of digits after the decimal point. If the answer is greater than 10^4, the number of digits printed in decimal is less than the precision required, giving you a wrong answer.

link

answered 19 Aug, 13:56

prakhar17252's gravatar image

5★prakhar17252
22617
accept rate: 7%

Thanks bro :)

(25 Aug, 20:27) arjitkansal4★
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:

×545
×288

question asked: 18 Aug, 12:24

question was seen: 102 times

last updated: 19 Aug, 14:03