[Community puzzles] Vote counting

Is it validator #3 or the final validator (#5) that you can’t pass? (Just asking, because this puzzle is so old that I think only CG staff is able to view the validators.)

I can’t see any issue in the approach you’ve described. If you want, you may send your code to me by private message and I’ll take a look there.

It’s validator #3 “Too much votes_validator”… maybe I can pm you my codes and see what’s the problem…

As discussed, voters should not be disqualified for voting fewer times than they’re allowed (also mentioned here).

1 Like

i passed all test in ide but failed in test 2 and 5 in validator

If you want, you may send me your code in private message and I’ll take a look at it.

Edit:

The following custom case may be helpful for those who cannot pass all the validators:

Input:

4
8
Zoe 2
Nicolas 3
Betty 2
York 3
Nicolas No
York Maybe
Betty Yes
York Maybe
Nicolas Yes
York Maybe
Betty No
Betty No

Output

1 1

Missing tags

  • Loops

  • Hash