You are not logged in. Please login at 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

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.


answered 11 Feb, 10:20

deluxurous's gravatar image

accept rate: 0%

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

(11 Feb, 10:57) karangreat2344★

Cool .....

(11 Feb, 11:10) aryanc4036★
Answer is hidden as author is suspended. Click here to view.

answered 11 Feb, 09:38

karangreat234's gravatar image

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) karangreat2344★

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★

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


answered 11 Feb, 09:39

aryanc403's gravatar image

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) karangreat2344★
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: 11 Feb, 09:08

question was seen: 351 times

last updated: 11 Feb, 12:14