I am new to competitive programming. In Some problems, i notice when i run the code, the output is something like:
-145586001
1
1
1
1
1
1
1
…
Now, i am certain that the output should never be negative. I think it’s because of overflowing integers. I even tried using “long long” type but the result was same. If someone could guide me with stuff like which data types and libraries should be used when dealing with large values, that would be really helpfull