2024/09/191 3190. Find Minimum Operations to Make All Elements Divisible by Three https://leetcode.com/problems/find-minimum-operations-to-make-all-elements-divisible-by-three/description/ 123456789class Solution: def minimumOperations(self, nums: List[int]) -> int: answer = 0 for num in nums: if num % 3 != 0: answer += 1 return answer Colored by Color Scriptercscase 1 ) 숫자가 3으로 나눴을때 나머지 가 0 인 경우 : 아무것도 안해도됨cas.. 2024. 9. 19. 이전 1 다음