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

×

Weak Test Cases in May Cook-Off COOK82B (Balanced Array) ,Rejudge?

8
1

Hello,my wrong solution was accepted in practice of COOK82B.

Here are the links to their submissions:

Correct solution: link text

My Wrong solution: link text

Sample input :

2

100000000 123456789

First submission returns 127222027 & Second submission returns 222026111.

Both are accepted solutions.

asked 22 May '17, 16:18

dusht0814's gravatar image

4★dusht0814
1945
accept rate: 14%


Test cases should be added in practice though!

link

answered 23 May '17, 16:07

prateek37's gravatar image

3★prateek37
262
accept rate: 100%

Test cases for this kind of errors have been added in the practice.

link

answered 24 May '17, 17:31

dpraveen's gravatar image

4★dpraveen ♦♦
2.5k53137170
accept rate: 20%

Thanks a lot :)

(24 May '17, 18:58) dusht08144★

Even my solution which got accepted gives some different answer than the ones you posted. But I find that my solution is similar to the correct one you have posted, cannot figure out the difference, still different answers. That strange.

Solution

link

answered 22 May '17, 19:08

lohit_97's gravatar image

4★lohit_97
3428
accept rate: 4%

2

Your solution ignores powers which are divisible by n.

Example

2

2 6

Output > 9

Answer > 18

PS > My solution is also wrong because of the same mistake.

(22 May '17, 19:29) dushsingh19954★

Aha. Thanks for the help. Got the error. Just that to re assign mp.begin() to my iterator.

(23 May '17, 17:46) lohit_974★

Submissions which were judged AC during the contest can't be judged WA after the contest.

link

answered 22 May '17, 18:23

prakhariitd's gravatar image

6★prakhariitd
1.1k211
accept rate: 10%

1

So this kind of ambiguity will be ignored?

(22 May '17, 19:07) dusht08144★
1

@dusht0814 > Rejudging submissions after contest is not a good idea. They can update test cases in practice section.

(22 May '17, 19:33) dushsingh19954★

i think they should allow a 24 hour hacking phase for cases like these :D

link

answered 23 May '17, 01:58

capta1n's gravatar image

4★capta1n
212
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:

×161
×46
×26

question asked: 22 May '17, 16:18

question was seen: 729 times

last updated: 24 May '17, 18:58