Codeforces Round #429 (Div. 2), problem: (A) Generous Kefa Solution in C/C++ ✎ Admin 796 August 21, 2017 Codeforces Round #429 (Div. 2), problem: (A) Generous Kefa Solution in C/C++ FacebookXPinterestWhatsApp #include<iostream> using namespace std; int i,j,n,k,a[26]; string s; main(){ for(cin>>n>>k>>s;i<s.size();)a[s[i++]-‘a’]++; for(i=0;j<26;)a[j++]>k?i=1:0; cout<<(i?”NO\n”:”YES\n”); } TagsCC languageC ProgrammingCodeForcesCodeforces Round #429 (Div. 2)Codeforces.comDiv. 1 + Div. 2)problem: (A) Generous Kefa Solution in C/C++ Why Everyone is Obsessed... Shopping May 26, 2026 Are... Read more Why Everyone is Obsessed... Shopping May 26, 2026 Are... Read more Is Nate Dead in... Entertainment May 26, 2026 The latest season of HBO's hit teen drama has... Read more Why Everyone is Obsessed... Shopping May 25, 2026 Are... Read more Why Everyone is Obsessed... Shopping May 25, 2026 Are... Read more Oakley Brings Back the... Lifestyle May 25, 2026 Oakley is renowned for pushing the boundaries of eyewear... Read more Why Everyone is Obsessed with the Digital Meat Thermometer Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Keyboard Cleaning Gel Putty Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Is Nate Dead in ‘Euphoria’? Season 3 Episode 7 Ending Explained The latest season of HBO's hit teen drama has kept viewers on the edge of their seats, but nothing could have prepared fans for... Why Everyone is Obsessed with the Real Techniques Makeup Sponge Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Heavy Duty Duck Tape Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Oakley Brings Back the FatCat from the Archive Oakley is renowned for pushing the boundaries of eyewear design, and now they are digging deep into their historical vault to bring back a... Why Everyone is Obsessed with the Reusable Water Balloon Set Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Why Everyone is Obsessed with the Emergency Keychain Power Bank Are you tired of dealing with everyday frustrations that slow down your routine? We've all been... Kathy Griffin Shares She Was Hospitalized Over Complications From Colonoscopy Comedian Kathy Griffin has never been one to shy away from sharing the raw, unfiltered details of her life. In her latest health update,... Previous articleCubs Claim Catcher Rene Rivera Off Waivers From MetsNext articleCodeforces Round #429 (Div. 2), problem: (B) Godsend Solution In C/C++