Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int i,j,k,l,n,c;
- string s;
- cin>>n;
- cout<<n;
- s += n;
- cout<<s;
- for(i=0; i<9; i++)
- {
- c=0;
- for(j=0; j<s.length(); j++)
- {
- if(s[j]==i)
- c++;
- cout<<s[j]<<endl<<i;
- }
- }
- if(c>4)
- {
- cout<<"not";
- }
- else
- cout<<"yes";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement