more hackerrank, codeforces
atcoder ARC022