Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b7fd84b

Browse files
Solution Accepted
1 parent 02a1c36 commit b7fd84b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/python3
2+
3+
import math
4+
import os
5+
import random
6+
import collections
7+
import re
8+
import sys
9+
10+
def birthdayCakeCandles(ar):
11+
return (max(collections.Counter(ar).values()))
12+
13+
if __name__ == '__main__':
14+
fptr = open(os.environ['OUTPUT_PATH'], 'w')
15+
16+
ar_count = int(input())
17+
18+
ar = list(map(int, input().rstrip().split()))
19+
20+
result = birthdayCakeCandles(ar)
21+
22+
fptr.write(str(result) + '\n')
23+
24+
fptr.close()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /