Skip to content

Commit f7f8039

Browse files
committed
Time: 51 ms (25.42%), Space: 16.5 MB (75%) - LeetHub
1 parent 248951d commit f7f8039

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Solution:
2+
def countSeniors(self, details: List[str]) -> int:
3+
count=0
4+
for i in range(len(details)):
5+
age=0
6+
age=int(details[i][11])*10+int(details[i][12])
7+
if age>60: count+=1
8+
return count

0 commit comments

Comments
 (0)