Sponsors

Tag: problem: (A) Generous Kefa Solution in C/C++

Codeforces Round #429 (Div....

#include<iostream> using namespace std; int i,j,n,k,a; string s; main(){ for(cin>>n>>k>>s;i<s.size();)a-'a']++; for(i=0;j<26;)a>k?i=1:0; cout<<(i?"NOn":"YESn"); }

Advertisement

spot_img