本质上是求小于 ai 的 bj 的个数。
对于小于 ai 的 bj ,构成的 (ai−bj) 都是负数,负数相乘必须是偶数个。
塔子哥来到一家彩票店,这家彩票店一共有 n 种刮刮乐。
第 i 种刮刮乐的价格为 ai ,且第 i 张刮刮乐一共会刮出来 m+1 个数,前 m 个数为 b1,b2,⋯,bm ,第 m+1 个数为 ai 。
本题属于以下题库,请选择所需题库进行购买
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.