From 209ddbca1f27283b5248e80aa02c815196f61a42 Mon Sep 17 00:00:00 2001 From: Adarsh <46349391+4d4r5h@users.noreply.github.com> Date: Mon, 10 Oct 2022 21:14:08 +0530 Subject: [PATCH] Create Investigation (Digit DP).cpp Problem from LightOJ --- .../Investigation (Digit DP).cpp | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Dynamic Programming/Investigation (Digit DP).cpp 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 "<