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 | 4009 |
2 | jiangly | 3773 |
3 | Radewoosh | 3646 |
4 | ecnerwala | 3624 |
5 | jqdai0815 | 3620 |
5 | Benq | 3620 |
7 | orzdevinwang | 3612 |
8 | Geothermal | 3569 |
8 | cnnfls_csy | 3569 |
10 | gyh20 | 3447 |
# | User | Contrib. |
---|---|---|
1 | cry | 161 |
2 | awoo | 160 |
2 | maomao90 | 160 |
4 | atcoder_official | 157 |
5 | -is-this-fft- | 156 |
6 | nor | 155 |
7 | adamant | 153 |
8 | maroonrk | 152 |
8 | Um_nik | 152 |
10 | djm03178 | 146 |
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 use 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