ATS resume help
前往频道在 Telegram
WhatsApp Me https://wa.me/917674087200 ✅ ATS-Friendly Resumes ✅ Higher Interview Calls ✅ Free Tips + Templates
显示更多3 730
订阅者
-324 小时
-167 天
-4730 天
帖子存档
3 730
int Find(vector &v,int n){
vector bit(32,0);
for(int i=0;i>j)&1 )
bit[j]++;
long long ans=0;
int M=1e9+7;
for(int i=0;i
3 730
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define F first
#define S second
#define int long long
#define ll long long
#define ull unsigned long long
#define ld long double
#define pii pair<int,int>
#define vi vector<int>
#define vii vector<pii>
#define vc vector
#define L cout<<'\n';
#define E cerr<<'\n';
#define all(x) x.begin(),x.end()
#define rep(i,a,b) for (int i=a; i<b; ++i)
#define rev(i,a,b) for (int i=a-1; i>=b; --i)
#define IOS ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define setpr(x) cout<<setprecision(x)<<fixed
#define sz size()
#define seea(a,x,y) for(int i=x;i<y;i++){cin>>a[i];}
#define seev(v,n) for(int i=0;i<n;i++){int x; cin>>x; v.push_back(x);}
#define sees(s,n) for(int i=0;i<n;i++){int x; cin>>x; s.insert(x);}
const ll inf = INT_MAX;
const ld ep = 0.0000001;
const ld pi = acos(-1.0);
const ll mod = 1000000007;
int dp[1001][1001];
bool rem(ll a , ll b){return a%b;}
void init_code(){
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif
}
ll add(ll x, ll y){
return (x+y)%mod;
}
ll multi(ll x , ll y){
return (x*y)%mod;
}
ll power(ll x , ll y){
x %= mod;
ll res = 1;
while(y > 0){
if(y&1)res=multi(res,x);
y=y>>1;
x = multi(x,x);
}
return res;
}
ll inverse(ll n,ll p){
return power(n,p-2);
}
int helper(unordered_map<int,vector<int>>&mp, vi &v,int ind,int prev){
if(ind==v.size()) return 1;
// cout<<ans
if(dp[ind][prev]!=-1) return dp[ind][prev];
int ans=0;
for(auto it:mp[v[ind]]){
if(it>prev)ans+=helper(mp,v,ind+1,it);
ans%=mod;
}
return dp[ind][prev]=ans;
}
void solve(){
int n;
cin>>n;
vi v(n);
rep(i,0,n) cin>>v[i];
unordered_map<int,vector<int>>mp;
for(int i=1;i<=1000;i++){
string s=to_string(i);
int val=0;
for(auto it:s){
val+=it-'0';
}
mp[val].pb(i);
}
// vector<vector<int>>dp(1001,vector<int>(1001,-1));
memset(dp,-1,sizeof(dp));
cout<<helper(mp,v,0,0)<<endl;
}
signed main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
init_code();
int t;cin >> t;while(t--)
solve();
return 0;
}
Google ✅
(C++)
3 730
Final call 🌞🌞
Techm,Cisco Exam help available ✅✅✅✅
Contact @placementsBro
Note: it's paid help
Remote access also available ☺️
💯 Clearance and genuine help ☺️
3 730
Those who needs help to clear
TECH MAHINDRA CERTIFICATION TEST,CISCO contact fast and book your slots.....
Few slots left...
100% clearance guaranteed
Contact- @placementsBro
.
3 730
Good Opportunity to all ✅
Dont miss this opportunity ✅
Coding Ninjas Scholarship Contest ✅✅
⚡️Get 100% Free Scholarship ⚡️
Opportunities through this Test:✅✅
1)Get Premium Courses Worth Lakhs For Free 📂
2)Get Free Bags🎒 / T-shirts 👕
Free Certification 📃
Eligibility: Any Graduate can Apply✅
Fees: ZERO
Last Date: 12th July ✅
❌Still 3 days Left❌
Try your Luck Guys 👀
Register Link:
https://www.codingninjas.com/studio/contests/scholarship-test-11th-to-12th-july-2023?utm_source=Growth-CS&utm_medium=RJ&utm_campaign=thinkcareers_Hardik_12July
3 730
TechM, Zoho Exam help available✅😁
Contact @placementsBro
100 percent Clearance
Scroll up and check all pinned proofs 😎💯
3 730
ACCENTURE
5th July Test
Slot Help Available
Msg: @placementsBro
Note: It's Paid 💰💰
Accenture is going to hire around 40,000 freshers so don't waste your chance.
Students who cleared test in previous and this week are receiving TR interview mails, so grab this opportunity and Contact Us.
Test Clearance Guaranteed✅✅
Your Job Our Responsibility 😊
3 730
a=list(map(int,input().split()))
b=list(map(int,input().split()))
x=int(input())
y=int(input())
z=[abs(a[t]-b[t]) for t in range(len(a))]
while min(z)>=2:
if x==0 and y==0:
break
if x:
p=z.index(max(z))
if a[p]>b[p]:
a[p]-=2
else:
a[p]+=2
x-=1
else:
p=z.index(max(z))
if b[p]>a[p]:
b[p]-=2
else:
b[p]+=2
y-=1
z=[abs(a[t]-b[t]) for t in range(len(a))]
print(sum([h**2 for h in z]))
