Global funtion() consumes less time than class member function() !

Revision en1, by Parvej, 2022-06-07 11:39:05

Today I was solving this problem.

I made two similar submissions.

Sub1 used class ( TLE ).

Sub2 exact same code without class ( AC ).

I can't understand why making the functions and variables as class's member consuming so much time?

I have googled but didn't find anything written about it.

Tags c++, class, fft

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Parvej 2022-06-07 11:39:05 540 Initial revision (published)