About Global Variable and Local Variable

Revision en1, by ChenShou, 2020-04-19 16:53:33

Just now I finish the Codeforces Global Round 7 D2 by look at Tutorial, but I found that the different place of variable caused time cost different.

Here is the AC submit and TLE submit. The only difference is line 24 in ac submit and line 25 in TLE submit. Can anyone tell me something about it ? Thanks in advance.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English ChenShou 2020-04-19 16:53:33 529 Initial revision (published)