Please help me with memset() and fill()

Revision en1, by NguyenDangQuan, 2020-04-24 18:45:39

Hi, I'm now crazing with memset() and fill() or fill_n(), in the Problem D Div2 Round #637, i used fill_n() and it was TLE, so I changed to memset() and accepted. I dont't understand the way memset work. Can you explain me ? Thank you

*In addition, sometimes i use memset but it doesn't work well

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English NguyenDangQuan 2020-04-24 18:59:15 159
en1 English NguyenDangQuan 2020-04-24 18:45:39 338 Initial revision (published)