Advertisement
TimxAG

Tolyaster

Mar 9th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef long long ll;
  4. int INF=2147483647;
  5. int inf=-2147483648;
  6. int mod=1000000007;
  7. #define read(x) cin >> x;
  8. #define fo(i,n) for(i=0;i<n;i++)
  9. #define one(x) cout<<(x)<<endl;
  10. #define two(a,b) cout<<(a)<<" "<<(b)<<endl;
  11. #define three(a,b,c) cout<<(a)<<" "<<(b)<<" "<<(c)<<endl;
  12. #define four(a,b,c,d) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<endl;
  13. #define write(a,i) cout << a[i] << " ";
  14. int main()
  15. {
  16. float x;
  17. int a,k=0,q,d;
  18. cin >> x >> a;
  19. x*=1000;while(x>=1000) x/=10;
  20. while(x!=0)
  21. {
  22. if(((int)(x)%10)==a)
  23. k++;
  24. x/=10;
  25. }
  26. if(k!=0)
  27. cout << "YES" ; else cout << "NO" ;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement