Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void solve()
- {
- ll n;
- cin>>n;
- ll num_of_digit=floor(log10(n)+1);
- cout<<(n/pow(10,num_of_digit-1)==7?"YES":"NO");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement