code exceeding time limit despite having admissible time complexity theoretically.

Revision en4, by VaishCodes, 2025-04-12 23:26:07

problem statement: https://codeforces.me/problemset/problem/1977/B

my submission: https://codeforces.me/contest/1977/submission/315209972

there is no nesting in any loop, and any loop runs atmost 32 times, why is my code exceeding time limit of 1 second??

Tags 1100, gnu c11, time limit exceeded

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English VaishCodes 2025-04-12 23:26:07 0 (published)
en3 English VaishCodes 2025-04-12 23:14:56 1474
en2 English VaishCodes 2025-04-12 23:12:26 18 (saved to drafts)
en1 English VaishCodes 2025-04-12 20:59:00 1795 Initial revision (published)