ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1585. Penguins

WHY WA#5? Python 3.3
Posted by Viktor Tyulpin 12 Aug 2014 17:53
Hey, I'm using Python and Counter:

from collections import Counter
print(max(Counter([input() for i in range(int(input()))])))

Works perfectly, but Test 5...

Edited by author 12.08.2014 17:55
Re: WHY WA#5? Python 3.3
Posted by Viktor Tyulpin 13 Aug 2014 21:33
It's not difficult to get AC with analyzing of first symbol in input string. I did make it. But how do I can do this task with Counter?