here is my solution to MXLCM problem in march lunchtime CodeChef: Practical coding for everyone ; its giving wrong answer ,although sample test cases are working properly… if the first link doesnot open then here is the another link https://onlinegdb.com/HkqS3ja8L please help me regarding my solution , although its not giving TLE but giving WA.
LCM of all the numbers in the array in worst case overflows the data types available in C++ Or C!
1 Like
How to overcome this problem?