Update solution for 단어_공부 w/ id 6684733
Time: 68ms MemUsage: 33212KB
This commit is contained in:
6
baekjoon/단어_공부/solution_6684733.py
Normal file
6
baekjoon/단어_공부/solution_6684733.py
Normal file
@@ -0,0 +1,6 @@
|
||||
string = input().upper()
|
||||
counts = {chr(c):string.count(chr(c)) for c in range(ord('A'),ord('Z')+1)}
|
||||
M = max(counts.values())
|
||||
if list(counts.values()).count(M)>1 :
|
||||
print('?')
|
||||
else : print(list(counts.keys())[list(counts.values()).index(M)])
|
||||
Reference in New Issue
Block a user