Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- typedef long long ll;
- int INF=2147483647;
- int inf=-2147483648;
- int mod=1000000007;
- #define read(x) cin >> x;
- #define fo(i,n) for(i=0;i<n;i++)
- #define one(x) cout<<(x)<<endl;
- #define two(a,b) cout<<(a)<<" "<<(b)<<endl;
- #define three(a,b,c) cout<<(a)<<" "<<(b)<<" "<<(c)<<endl;
- #define four(a,b,c,d) cout<<(a)<<" "<<(b)<<" "<<(c)<<" "<<(d)<<endl;
- #define write(a,i) cout << a[i] << " ";
- int main()
- {
- float x;
- int a,k=0,q,d;
- cin >> x >> a;
- x*=1000;while(x>=1000) x/=10;
- while(x!=0)
- {
- if(((int)(x)%10)==a)
- k++;
- x/=10;
- }
- if(k!=0)
- cout << "YES" ; else cout << "NO" ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement