Hi there I'm facing problem with python modules.Like when I try to find gcd or lcm using math module, it shows me runtime error. So what are those things that I can't perform in competitiveprogramming with python?
Rules or blog references please.
# | User | Rating |
---|---|---|
1 | tourist | 3671 |
2 | jiangly | 3653 |
3 | Um_nik | 3629 |
4 | Benq | 3513 |
5 | ksun48 | 3486 |
6 | MiracleFaFa | 3466 |
7 | slime | 3452 |
8 | maroonrk | 3422 |
9 | Radewoosh | 3406 |
10 | greenheadstrange | 3393 |
# | User | Contrib. |
---|---|---|
1 | awoo | 187 |
2 | YouKn0wWho | 182 |
2 | -is-this-fft- | 182 |
4 | Um_nik | 179 |
5 | Monogon | 177 |
6 | antontrygubO_o | 171 |
7 | maroonrk | 165 |
8 | adamant | 164 |
9 | SecondThread | 163 |
10 | SlavicG | 161 |
Hi there I'm facing problem with python modules.Like when I try to find gcd or lcm using math module, it shows me runtime error. So what are those things that I can't perform in competitiveprogramming with python?
Rules or blog references please.
Name |
---|
math.lcm got added in Python 3.9. The current version of Python up on Codeforces is 3.8.10.
If you want to find gcd then you have to first (import math) then write (math.gcd(x,y)) where x and y are variables.
Yes ik. But when I submit code it shows runtime error.
(Print this and then tell me.)1.
First adjust this