Weird behaviour with and without struct on execution time

Правка en1, от raghav_19, 2021-03-24 14:26:36

In this problem, i was using fft to solve it but found very strange behaviour between two case. submission1 in which my fft code and its function are written are written normally which gave me TLE in mostly all cases but in submission2 when I put all fft function into struct and my code get AC.

struct is the only change between two submission. Can someone explain the reason behind this.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский raghav_19 2021-03-24 14:26:36 600 Initial revision (published)