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

×

Invitation to ProCon 2018

Hello,

We at IIIT-Delhi would like to invite you to ProCon 2018, the annual programming contest conducted as a part of our technical festival — Esya. It will start at 21:00 IST on 16th August, 2018. There will be 6 problems of varying difficulty to be solved within a duration of 2 hours, with ACM-ICPC style scoring. The contest will be rated for everyone (Division 1 and Division 2). Top participants will be rewarded CodeChef Laddus. Moreover, there will be Cash Prizes for the Top 3 Indian contestants.

Happy Coding!

asked 14 Aug '18, 22:38

meetsid20's gravatar image

4★meetsid20
111
accept rate: 0%


Solution 1 :- https://ideone.com/tcv1x8 Solution 2 :- https://ideone.com/fts2O6

Hey can u tell me why the solution 1 is not working while the solution 2 is giving the correct answer . The only difference between them is in first solution i have used the setprecision and in the second one i have used printf()

link

answered 17 Aug '18, 00:20

gargaddy2202's gravatar image

3★gargaddy2202
1
accept rate: 0%

srry i forgot to add the question link Question link :- https://www.codechef.com/problems/PROC18B/

(17 Aug '18, 00:22) gargaddy22023★

You didn't use fixed with cout.

(17 Aug '18, 00:53) meetsid204★

Is there any difference on relative error if fixed is used?

(17 Aug '18, 01:00) ankit_gupta_5★

Yes, there might be a difference. This is because setprecision defines the total number of digits to be printed when used without fixed (default format) rather than the number of digits after the decimal point.

(17 Aug '18, 05:26) meetsid204★

I am not able to open anyone's submission... why not ?

link

answered 17 Aug '18, 10:32

l_returns's gravatar image

5★l_returns
1.4k19
accept rate: 25%

edited 17 Aug '18, 10:37

yeah i tried to edit my answer... but its not working....
edit: I am not able to open anyone's submission from contest... why not ?

(17 Aug '18, 10:40) l_returns5★

thanks for links though...

(17 Aug '18, 10:43) l_returns5★

This contest is very comfortable, thank you very much for preparing the contest. WoW

link

answered 17 Aug '18, 15:03

freeloop's gravatar image

6★freeloop
3443
accept rate: 47%

Can anyone pls provide the editorial of ALGEBRA SCORE

link

answered 17 Aug '18, 15:21

spverma's gravatar image

1★spverma
1
accept rate: 0%

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,236
×124
×79
×34
×13

question asked: 14 Aug '18, 22:38

question was seen: 335 times

last updated: 17 Aug '18, 15:03