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

cook82
rejudge
weak-test-case

#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.


#2

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


#3

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


#4

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


#5

Test cases should be added in practice though!


#6

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


#7

So this kind of ambiguity will be ignored?


#8

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.


#9

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


#10

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


#11

Thanks a lot :slight_smile: