SCUT校赛129:笔芯值(数学)
题目描述对于一个nn个数的序列 a_1,a_2,\cdots,a_na1,a2,⋯,an,从小到大排序之后为a_{p_1},a_{p_2},\cdots,a_{p_n}ap1,ap2,⋯,apn,定义它的 bxbx 值为满足 a_{p_i} \neq a_{p_{i-1}}+1, 1 api≠api−1+1,