Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string>
- #include <iostream>
- using namespace std;
- int main() {
- //freopen("input.txt", "r", stdin);
- //freopen("output.txt", "w", stdout);
- int n;
- cin >> n;
- if (((n % 10 * (n / 10 % 10) * n / 100 % 10 * n / 1000)/100) &&
- !((n % 10 * (n / 10 % 10) * n / 100 % 10 * n / 1000)/1000))
- cout << "YES\n";
- else
- cout << "NO\n";
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement