Same Code First time Accepted and same code Gives TLE

Правка en1, от ChandVachhani, 2020-04-17 17:12:49

When I am trying to solve This Question First I get TLE then I read editorial and some of my friend's solution and I like one of my friend[user:arham_doshi]'s solution and try to implement this by myself. But still I get TLE. Then I copied Arham's Accepted code and paste it in that problem then also it gives TLE. But after some time I noticed that he used language c++14 for submit code and i am using c++17. Then i change the language and submit code then i get accepted.

Code submitted in c++14 click here

Code submitted in c++17 Click here

So why this happened. I am very curious to know about this thing. Can anyone explain?

Теги curiosity, why???

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en7 Английский ChandVachhani 2020-04-17 17:44:01 0 (published)
en6 Английский ChandVachhani 2020-04-17 17:38:00 74
en5 Английский ChandVachhani 2020-04-17 17:22:45 4
en4 Английский ChandVachhani 2020-04-17 17:21:53 10
en3 Английский ChandVachhani 2020-04-17 17:20:43 6
en2 Английский ChandVachhani 2020-04-17 17:20:17 625
en1 Английский ChandVachhani 2020-04-17 17:12:49 858 Initial revision (saved to drafts)