You are not logged in. Please login at 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 '18, 12:24

arjitkansal's gravatar image

accept rate: 3%

edited 18 Aug '18, 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.


answered 19 Aug '18, 13:56

prakhar17252's gravatar image

accept rate: 5%

Thanks bro :)

(25 Aug '18, 20:27) arjitkansal6★
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: 18 Aug '18, 12:24

question was seen: 149 times

last updated: 19 Aug '18, 14:03