D数据弱了
一开始直接rand() 1k种颜色去check,交了7,8发没过,然后改成按数量排序,取前100大的check,再check900个随机颜色,然后就过了https://ac.nowcoder.com/acm/contest/view-submission?submissionId=69382699
一开始直接rand() 1k种颜色去check,交了7,8发没过,然后改成按数量排序,取前100大的check,再check900个随机颜色,然后就过了https://ac.nowcoder.com/acm/contest/view-submission?submissionId=69382699
相关推荐