Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

How many loops in 1 sec ?

Revision en1, by ronak037, 2020-04-24 11:35:37

Basically I want to know how many loops we can iterate in 1 sec because according to me this number is approx 10^6 but in ques A of given link: https://codeforces.com/contest/1341/problem/A, I submitted a solution with brute force by thinking that it takes a maximum of 10^6 loops so I will not tle in system cases but that doesn't happen my solution got tle later and I relook into that solution and also not getting the reason why this solution get tle as it takes a maximum of 10^6 loops. Solution link: https://codeforces.com/contest/1341/submission/77777541. So please anyone explain to me the reason for this. Thank you

Tags #math

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ronak037 2020-04-24 11:35:37 761 Initial revision (published)