Small_Traveler @ 2024-10-08 13:43:34
别用memset,自己手动用idx清零
by zznomortypig @ 2024-10-09 21:56:31
@Small_Traveler 牛逼,太感谢了,为啥memset会超时啊?
by mooktian @ 2024-10-10 11:07:01
@zznomortypig 数组开的太大了,memset是把整个数组全部赋值一遍,所以用memset的时间复杂度很高。
by zznomortypig @ 2024-10-10 12:55:33
666
by George123456ggggg @ 2024-10-15 21:11:43
感谢
by To_Carpe_Diem @ 2024-10-16 22:41:24
memset(ch, 0, sizeof(ch[0]) * (id + 1));
memset(cnt, 0, sizeof(cnt[0]) * (id + 1));
这样其实不会炸,
@George123456ggggg @zznomortypig @zznomortypig
by George123456ggggg @ 2024-10-16 22:48:35
@To_Carpe_Diem 我看看