Advertisement
ShRooK_MoHameD

MyCode

Oct 5th, 2022
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.12 KB | None | 0 0
  1. void solve()
  2. {
  3. ll n;
  4. cin>>n;
  5. ll num_of_digit=floor(log10(n)+1);
  6. cout<<(n/pow(10,num_of_digit-1)==7?"YES":"NO");
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement