In recent codeforces div 4 round In Problem E triple operations my code is giving different output than what is on local machine
Here is my submission 275029038
I do not understand why is that so myoutput
codeforces output
# | User | Rating |
---|---|---|
1 | tourist | 3947 |
2 | ecnerwala | 3654 |
3 | jiangly | 3627 |
4 | jqdai0815 | 3620 |
5 | orzdevinwang | 3612 |
6 | Benq | 3586 |
7 | Radewoosh | 3582 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | ksun48 | 3474 |
# | User | Contrib. |
---|---|---|
1 | awoo | 163 |
2 | maomao90 | 160 |
3 | adamant | 156 |
4 | atcoder_official | 155 |
5 | maroonrk | 152 |
6 | -is-this-fft- | 148 |
6 | SecondThread | 148 |
8 | Petr | 147 |
9 | cry | 146 |
10 | nor | 145 |
In recent codeforces div 4 round In Problem E triple operations my code is giving different output than what is on local machine
Here is my submission 275029038
I do not understand why is that so myoutput
codeforces output
Name |
---|
Don't used log function. It works with doubles, that's why you are getting WA. Write yours own LOG function
Thank you very much for reply
I recommend writing your own logarit function, because the built-in one only works with double. Btw, about the problem, I suggest you this 275041318, Precalculate the number of operations needed for each number.
Thank you very much for reply