原创水题

自己出的一道水题。数据范围T<=5000,N<=10^7吧。只是玩一玩Challenge builder这个东西。

原文地址:https://www.cnblogs.com/oldmanren/p/3474317.html