Codeforces Round #411 (Div. 2), problem: (D) Minimum number of steps Solution In C/C++ ✎ Admin 639 July 24, 2017 Codeforces Round #411 (Div. 2), problem: (D) Minimum number of steps Solution In C/C++ FacebookTwitterPinterestWhatsApp #include<bits/stdc++.h> using namespace std; int c,d,i,n,m,k,x,j=1000000007; string s; main(){ cin>>s; for(i=s.size()-1;i>=0;i–){ if(s[i]==’b’)c++;else{ k+=c;c*=2;k%=j;c%=j; } } cout<<k; } TagsCodeforces Round #411 (Div. 2)problem: (D) Minimum number of steps Solution In C/C++problem: (D) Minimum number of steps Solve In C/C++ Why Everyone is Obsessed... Shopping May 19, 2026 Are... Read more Infected with TDSS and... Technology May 19, 2026 Dealing with TDSS Rootkit Infections and Google Search Redirects Computer... Read more Why Everyone is Obsessed... Shopping May 18, 2026 Are... Read more Why Everyone is Obsessed... Shopping May 18, 2026 Are... Read more Ronda Rousey vs. Gina... Sports May 18, 2026 The Dream Match: Ronda Rousey vs. Gina Carano at... Read more Why Everyone is Obsessed... Shopping May 18, 2026 Are... Read more Why Everyone is Obsessed with the Portable Door Lock for Travel Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Infected with TDSS and Google Keeps redirecting Dealing with TDSS Rootkit Infections and Google Search Redirects Computer security is a continuous battle, and some threats are significantly more stubborn than others. A... Why Everyone is Obsessed with the Portable Handheld Misting Fan Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Mini Magnetic Bag Sealer Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Ronda Rousey vs. Gina Carano MVP MMA live blog The Dream Match: Ronda Rousey vs. Gina Carano at MVP MMA The world of mixed martial arts is currently witnessing a moment many thought would... Why Everyone is Obsessed with the Electric Spin Scrubber Pro Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Mini Magnetic Bag Sealer Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Electric Spin Scrubber Pro Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Sunset Projection Lamp LED Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Previous articleCodeforces Round #411 (Div. 2), problem: (C) Find Amir Solution In C/C++Next articleCodeforces Round #411 (Div. 2), problem: (E) Ice cream coloring Solution In C/C++