Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <string>
  2. #include <iostream>
  3.  
  4.  
  5. using namespace std;
  6.  
  7.  
  8. int main() {
  9. //freopen("input.txt", "r", stdin);
  10. //freopen("output.txt", "w", stdout);
  11. int n;
  12. cin >> n;
  13.  
  14. if (((n % 10 * (n / 10 % 10) * n / 100 % 10 * n / 1000)/100) &&
  15. !((n % 10 * (n / 10 % 10) * n / 100 % 10 * n / 1000)/1000))
  16. cout << "YES\n";
  17. else
  18. cout << "NO\n";
  19. system("pause");
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement