-
Practice>Python>Math>Triangle Questhackerrank.com 2019. 3. 7. 12:58728x90
Triangle Quest
Problem link : https://www.hackerrank.com/challenges/python-quest-1/problemDifficulty : MediumTip
- 1 -> 1 / 1 -> 1
- 22 -> 22/2 -> 11
- 333 -> 333/3 -> 111
- 4444 -> 4444/4 -> 1111
- This is a first idea
- 10 ** 1 // 9 -> 1
- 10 ** 2 // 9 -> 11
- 10 ** 3 // 9 -> 111
- 10 ** 4 // 9 -> 1111
- This is a second idea
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Sets>Check Subset (0) 2019.03.09 Practice>Python>Sets>The Captain's Room (0) 2019.03.08 Practice>Python>Math>Integers Come In All Sizes (0) 2019.03.07 Practice>Python>Debugging>Words Score (0) 2019.03.07 Practice>Python>Itertools>Maximize It! (0) 2019.03.07