結果 : next round codeforces solution in python