Please read the new rule regarding the restriction on the use of AI tools. ×

I don't understand how this is possible

Revision en1, by FullMetalChains, 2023-08-26 23:18:43

Here are two solutions to problem D of today's contest

1.First solution-->

My Code1
  1. Second solution
His Code

The first one shows TLE on testcase 8 while the second one shows accepted. Both are same solutions to the problem.

Does anyone know why the results are so different?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English FullMetalChains 2023-08-27 19:28:06 4
en2 English FullMetalChains 2023-08-26 23:19:24 14
en1 English FullMetalChains 2023-08-26 23:18:43 3434 Initial revision (published)