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

×

CHORCKIT: Is the test data generates as is informed in the problem description?

I was confused about the reason of continuous Wrong Answer verdict, until I submitted this code and get a Runtime Error verdict.

Without the assert, the program is getting wrong answer.

However in all datasets, the lower bound of X >= the upper bound of R

Please check this.

asked 11 Feb, 09:08

whzzt's gravatar image

7★whzzt
191
accept rate: 0%


In the generation of the 5th test file, R is generated uniformly randomly in [10^3, 5*10^4]. Sorry for the inconvenience.

link

answered 11 Feb, 10:20

deluxurous's gravatar image

4★deluxurous
211
accept rate: 0%

really nice Challenge problem though :-) Great Work !!!:-)

(11 Feb, 10:57) karangreat2345★

Cool .....

(11 Feb, 11:10) aryanc4035★

Posting any code on this forum related to an ongoing contest is strictly not allowed.Please refrain from doing that. And , you might have used up some 'x' which has now become less than 'r' itself. :-) I want to clear up more things related to code and other things, but I am not allowed to, according to Codechef Rules of Conduct :-( @vijju may look into this :-)

link

answered 11 Feb, 09:38

karangreat234's gravatar image

5★karangreat234
-8639
accept rate: 0%

edited 11 Feb, 09:40

I think this code provides no information so I posted it, is this still violates the rules? If so, I apologize for it, but I don't have any idea else to show the problem, since the contest is nearly ended.

(11 Feb, 09:42) whzzt7★

Also I used assert just after the input.

(11 Feb, 09:43) whzzt7★

Hey, aryanc403 has cleared your query :-)

His comment is :- You forgot to take a as input in the above code. I also got SIGABRT error when I made this assert.

(11 Feb, 09:49) karangreat2345★
2

I used scanf to read 5 integers, as is described in the problem. *d means you just read and the number won't be sent to you.

(11 Feb, 10:07) whzzt7★

Hey @whzzt

The contest is extended for two more days. So do not worry. Also, if you have any query, I would request you to post in as comment. The author @deluxurous will reply you there :)

Happy Coding.

(11 Feb, 12:14) admin ♦♦0★
-2

You forgot to take a as input in the above code.
I also got SIGABRT error when I made $(R<=X)$ assert.
My Code

link

answered 11 Feb, 09:39

aryanc403's gravatar image

5★aryanc403
2.7k1618
accept rate: 10%

edited 11 Feb, 11:09

I thought no hints/idea(s) are given during an ongoing contest ?! : D

(11 Feb, 09:41) karangreat2345★
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:

×205
×189
×7

question asked: 11 Feb, 09:08

question was seen: 413 times

last updated: 11 Feb, 12:14