結果 : codeforces watermelon solution in python