Different Runtimes On Same Code

1308
Dec 27, 2019

Why do i get different runtimes when i submit the same code again and again...Like i wrote a code.On first submission it gave runtime of 28ms and it was better than 48% of c++ submissions . When i clicked the submit button again 2 times the runtime improved from 28 to 20 ms making the code run faster than 80% of c++ submissions. Why is this happening?
Thanking in Advance :)

Comments (4)