I used the DP technique but I am getting WA in SubTask1 and remaining ones are correct . Can anyone suggest what's wrong in my code
#include <bits/stdc++.h>using namespace std;#define ll long long int#define f(i,a,b) for(i=a;i<b;i++)#define max_e max_elementint main(){ios_base::sync_with_stdio(false);cin.tie(NULL);ll t;cin>>t;ll A[t],B[t],SumF[t],result,ans,SumB[t],sum=0;int i,j;f(i,0,t)cin>>A[i];f(i,0,t){cin>>B[i];sum+=B[i];}if(t==1){
Read more… (26 words)