结论:
O(n log n),来自排序。
By signing up a GDUFACM universal account, you can submit code in all online judging services provided by us.
使用您的 GDUFACM 通用账户