Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- int ap[10];
- int main()
- {
- int c,i,n;
- double x;
- cin>>n;
- for(i=1;i<=n;i++)
- {
- cin>>x;
- if(x<0) x=-x;
- while(x-int(x)>0.001)
- {
- x=x*10;
- }
- int y=x;
- while(y>0)
- {
- c=y%10;
- ap[c]++;
- y=y/10;
- }
- }
- for(i=1;i<=9;i++)
- {
- if(ap[i]==0)
- {
- cout<<i<<" ";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement