Problem link : https://cses.fi/problemset/task/1194↵
Submission link: https://cses.fi/problemset/result/6625261/↵
↵
I have done the problem in n*m which is the most optimised one, (1<=n,m<=10^63) . Even then I am getting TLE in one test case
Submission link: https://cses.fi/problemset/result/6625261/↵
↵
I have done the problem in n*m which is the most optimised one, (1<=n,m<=10^