Gotta go fast?

Revision en4, by HiCode2009, 2022-10-28 16:26:51

CF1108B

First submission

Second submission

Don't laugh at where I have defined the variables.I did that many months ago,code style unlike now.

We can use sort after changing the divisors' value,but the code which changes them to -14248 runs faster.It's 15ms faster than the other.Why is this happening?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English HiCode2009 2022-10-28 16:26:51 45
en3 English HiCode2009 2022-10-28 16:26:11 5 Tiny change: 'n use sort then,but the c' -> 'n use sort,but the c'
en2 English HiCode2009 2022-10-28 16:25:05 4
en1 English HiCode2009 2022-10-28 16:24:52 497 Initial revision (published)