commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
n = int(input())
|
||||
s = input()
|
||||
# Continue your code here and print your final answer!
|
||||
|
||||
odd_evens = [ord(c) % 2 for c in list(s)]
|
||||
odd = 0
|
||||
even = 0
|
||||
for x in odd_evens:
|
||||
if x == 1:
|
||||
odd += 1
|
||||
else:
|
||||
even += 1
|
||||
|
||||
print(odd, even)
|
||||
Reference in New Issue
Block a user