-
Practice>Python>Itertools>Maximize It!hackerrank.com 2019. 3. 7. 07:20728x90
Maximize It!
Problem link : https://www.hackerrank.com/challenges/maximize-it/problemDifficultiy : HardTip
- Cartesian product is a key to solve this problem, from 'from itertools import product'
- Don;t miss that the first item in each K line, is # of Ni
- Do '%' to sum of each item
- Save maximum result of '%'
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Math>Integers Come In All Sizes (0) 2019.03.07 Practice>Python>Debugging>Words Score (0) 2019.03.07 Practice>Python>Itertools>Iterables and Iterators (0) 2019.03.04 Practice>Python>Collections>Piling Up! (0) 2019.02.28 Practice>Python>Sets>Set Mutations (0) 2019.02.27