Files
LeetCode_tasks/solutions/lc2960.py
2026-05-23 20:29:33 +05:00

9 lines
220 B
Python

class Solution:
def countTestedDevices(self, batteryPercentages: List[int]) -> int:
total = 0
for i in batteryPercentages:
if i-total > 0:
total += 1
return total