表演一个随机hash过F
https://ac.nowcoder.com/acm/contest/view-submission?submissionId=72912654
本质就是二分,把字符和num = A[rand() % h]交换后比大小,放b,c,d三个桶里,怕被卡就开rand优化了
https://ac.nowcoder.com/acm/contest/view-submission?submissionId=72912654
本质就是二分,把字符和num = A[rand() % h]交换后比大小,放b,c,d三个桶里,怕被卡就开rand优化了
相关推荐