Comments
On mohabamr → Recommender, 7 years ago
+2

Its generating a pop-up showing Something went wrong: 503

rep(j,0,2019){
            if (dp[j] > 0){
                ll rem = (10*j + d)%2019;
                if (rem == 0) ans+=dp[j];
                tdp[rem]+=dp[j];
            }
        }

can u please explain me this step and guide me how to develop these approaches efficiently?

any other approach for problem D ??

DIV2-B any better approach??