题目链接:Codeforces Round #538 (Div. 2) - Problem F
题目链接:The 2018 ACM-ICPC Asia Qingdao Regional Contest, Online - Problem I]