DSA Learning - Subtraction Game 2 (DP) - TLE

I am getting TLE with the following code,( #include <bits/stdc++.h>#define ll long long int a[100],n,dp[61][10001];ll - Pastebin.com ) someone please check if the approach is wrong .