diff --git a/Dynamic Programming/Investigation (Digit DP).cpp b/Dynamic Programming/Investigation (Digit DP).cpp new file mode 100644 index 0000000..bb7c4a0 --- /dev/null +++ b/Dynamic Programming/Investigation (Digit DP).cpp @@ -0,0 +1,78 @@ +// https://lightoj.com/problem/investigation + +#include +#define pb(x) push_back(x) +#define all(x) (x).begin(), (x).end() +#define rall(x) (x).rbegin(), (x).rend() +#define F(w,x,y) for(ll w=x; w>lvalue>>r>>m; + lvalue--; + string l=to_string(lvalue); + + if(m==0 || m>=90) + { + cout<<0<>t; + F(i,1,t+1) + { + cout<<"Case "<