hackerrank.com
Practice>Python>Math>Triangle Quest
건이두
2019. 3. 7. 12:58
728x90
Triangle Quest
Problem link : https://www.hackerrank.com/challenges/python-quest-1/problem
Difficulty : Medium
Tip
- 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