程序设计在线评测(Online Judge)

F题以数据为准,题面也已修改!

This problem is in Contest(s) below:
Contest 1520:2017IOT1-2比赛试题练习1