There was an error while loading. Please reload this page.
2 parents 4582e4c + 99601c5 commit 2f828a7Copy full SHA for 2f828a7
1 file changed
leetcode3/최민지/3813-vowel-consonant-score.py
@@ -0,0 +1,11 @@
1
+class Solution:
2
+ def vowelConsonantScore(self, s: str) -> int:
3
+ A = ['a', 'e', 'i', 'o', 'u']
4
+ v, c = 0, 0
5
+ for i in s:
6
+ if i in A:
7
+ v += 1
8
+ else:
9
+ c +=1
10
+ return floor(v / c)
11
+
0 commit comments