There was an error while loading. Please reload this page.
1 parent 0f6e3d0 commit 99601c5Copy full SHA for 99601c5
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