Advertisement
SelinD

49/129

Jun 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. int ap[10];
  5. int main()
  6. {
  7. int c,i,n;
  8. double x;
  9. cin>>n;
  10. for(i=1;i<=n;i++)
  11. {
  12. cin>>x;
  13. if(x<0) x=-x;
  14. while(x-int(x)>0.001)
  15. {
  16. x=x*10;
  17. }
  18. int y=x;
  19. while(y>0)
  20. {
  21. c=y%10;
  22. ap[c]++;
  23. y=y/10;
  24. }
  25. }
  26. for(i=1;i<=9;i++)
  27. {
  28. if(ap[i]==0)
  29. {
  30. cout<<i<<" ";
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement