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;
- int a = n % 10;
- int b = n / 10 % 10;
- int c = n / 100 % 10;
- int d = n / 1000;
- if (100 <= a * b * c * d && a * b * c * d <= 999) {
- cout << "YES\n";
- } else
- cout << "NO\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement