# | User | Rating |
---|---|---|
1 | tourist | 3690 |
2 | jiangly | 3647 |
3 | Benq | 3581 |
4 | orzdevinwang | 3570 |
5 | Geothermal | 3569 |
5 | cnnfls_csy | 3569 |
7 | Radewoosh | 3509 |
8 | ecnerwala | 3486 |
9 | jqdai0815 | 3474 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | maomao90 | 173 |
2 | awoo | 164 |
3 | adamant | 163 |
4 | TheScrasse | 160 |
5 | nor | 157 |
6 | maroonrk | 156 |
7 | -is-this-fft- | 152 |
8 | Petr | 146 |
8 | orz | 146 |
10 | pajenegod | 145 |
0
Thanks. The changes I did were removed I still don't understand why changing exist from int to bool got me AC.I know bool takes less memory and is faster than int, but is the difference significant enough to give TLE?? |
0
Can someone explain why I am getting TLE in div2 D prob https://codeforces.com/contest/1649/submission/148733037 |
0
n can be of the form 4*k , 4*k+1 , 4*k+2 , 4*k+3 (for some k>=0) case 1: n = 4*k ans = k ,k, 2*k LCM = 2*k case 2: n = 4*k+1 ans = 1 ,2k ,2k LCM = 2k case 3: n= 4*k+2 ans = 2 , 2k , 2k LCM = 2k case 4: n = 4k+3 ans = 1 , 2k+1 , 2k+1 LCM = 2k+1 |
+6
How this submission is getting accepted and not TLE as clearly their is a for loop that goes till 'n' and 'n' is 10^9 and test cases 't'= 1000. and time limit is 1 sec. Link: https://codeforces.com/contest/1476/submission/105860386 I thought in 1 sec only 10^9 operations can be done |
0
very useful!!!! |
Name |
---|