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


Strangeness in BITFLIT v.02

In the ongoing contest BITFLIT v.02 there was a problem named "SUPGLRES".

Everybody solved this problem including me. There was nothing such in the question. But after sometime, point of that question was removed and that reflected in ranklist too.

But in submission, it was showing AC. Whats the matter @admin??

asked 27 Dec '17, 23:24

bhola_nit's gravatar image

accept rate: 0%

edited 27 Dec '17, 23:26

From the contest page:

Announcement from CodeChef: It has come to our notice that a problem in this contest has been copied from an existing problem. This is against our rules, and hence this contest stands cancelled.

answered 29 Dec '17, 13:09

ayan_nitd's gravatar image

accept rate: 13%

edited 29 Dec '17, 13:09

it was one of the worst contests ever held on Codechef.... most of the problems were well known and poorly written. :(


answered 28 Dec '17, 12:02

amulyagaur111's gravatar image

accept rate: 9%

In addition to your problem, I think there must have been a problem with the test cases. The problem clearly stated that "

the first line of input contains the total number of Avengers, N. The next line contains pebbles each avenger is having", however, I don't believe the input was formatted properly in the test cases.

Here is a solution that worked: Solution w/ scanner

And here is my solution that kept getting NZEC: Solution w/ BufferedReader

As you can tell, the solutions are very similar, with the only difference being the use of Scanner instead of BufferedReader. The AC solution uses the scanner's nextInt() function, therefore disregarding linebreaks. In contrast, my use of the bufferedReader means I must go line by line and use a stringTokenizer to parse the individual integers in the line. When I was debugging I found the NZEC was caused by this for-loop:

for(int i = 0; i < N; i++){ arr[i] = Integer.parseInt(st.nextToken()); }

Therefore, it seems as though the test cases had everything either on one line or perhaps everything on a second line. Regardless, I based my input off of the given test case, a format that was clearly not used in the tested ones.

Can anyone else confirm this, or perhaps find the error that is giving me an NZEC.


answered 28 Dec '17, 00:12

xyoends's gravatar image

accept rate: 0%

I didn't mean that. TC was weak no doubt about it. A people already got AC but after some time submission was removed for no reason. It happened with everyone!!

(28 Dec '17, 00:25) bhola_nit3★

It's clear there were issues with the entire problem, both in the statement and the test cases, and they must have changed something part way through the contest. Hopefully we can get an answer from the organizer.

(28 Dec '17, 00:27) xyoends2★

Yeah!! The question itself was a bug!! :)

(28 Dec '17, 00:29) bhola_nit3★

in this question it is said if 2nd person collects more pebbles then only condition will hold true. where it is said that if 2nd person collects more or equal no of pebbles then the condition holds true.? more means more i guess not equal. but here the testcase are given as such that if 2nd person collects more or equal pebbles from 1st one then condition is true. i seriously didn't understand


answered 27 Dec '17, 23:48

riddhi77's gravatar image

accept rate: 0%

The question was itself a bug.. I think.. :)

(27 Dec '17, 23:53) bhola_nit3★

Very poorly written, i spent more time reading and understanding what the problem statement is trying to say rather solving it. well questions were easy too and i felt good after solving most of them. Exactly like hulk from the 1st avengers, where u are trashing a god in the stark tower. thats how i felt, Its better to feel like that after being frustated of trying to compete in coding. arrhh don't pity me.

But, You know what was most irritating?? It was the dumb marvel and dc crossovers.Okay, there is a superwoman. ok, thats cool.but then avengers came in. Like wtf.

Pheww.. i felt like i'm in arkham.


answered 31 Dec '17, 01:10

ujjawal14's gravatar image

accept rate: 0%

edited 31 Dec '17, 01:15

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: 27 Dec '17, 23:24

question was seen: 531 times

last updated: 31 Dec '17, 01:15