Question — https://codeforces.me/problemset/problem/161/D
Submission — https://codeforces.me/contest/161/submission/278555376
IMO, it should pass the time constraints. Am I missing something?
Getting TLE for O(n*k) solution. Can someone help!
Question — https://codeforces.me/problemset/problem/161/D
Submission — https://codeforces.me/contest/161/submission/278555376
IMO, it should pass the time constraints. Am I missing something?