I used const int mod and int mod and they both had a different execution time.
int mod = 1e9 + 7 execution time : more than 1 sec code : https://cses.fi/problemset/result/651565/
int const mod = 1e9 + 7 execution time 0.58 sec code : https://cses.fi/problemset/result/651564/
can anyone explain why there is such a huge difference?
on codeforces the above code executes in less than 1 sec.