These codes are solution for problems on https://www.acmicpc.net/, https://www.codility.com/, https://programmers.co.kr/, https://leetcode.com/ Maybe there are more efficient and clear solution. All solutions are written in python3.