#include <iostream>
#include <string>
using namespace std;
bool check;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
string N; cin >> N;
int tempLeft = 1;
for (int i = 0; i < N.length()-1; i++) {
int tempRight = 1;
tempLeft *= (N[i]-'0');
for (int k = i + 1; k < N.length(); k++) {
tempRight *= (N[k] - '0');
}
if (tempLeft == tempRight) {
check = true;
break;
}
}
if (check) cout << "YES";
else cout << "NO";
}
'Algorithm ๐ง๐ปโ๐ป > ๋ฐฑ์ค(BOJ)' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค,c++] 1371๋ฒ - ๊ฐ์ฅ ๋ง์ ๊ธ์ (0) | 2021.11.05 |
---|---|
[๋ฐฑ์ค,c++] 11497๋ฒ - ํต๋๋ฌด ๊ฑด๋๋ฐ๊ธฐ (0) | 2021.11.05 |
[๋ฐฑ์ค,c++] 1357๋ฒ - ๋ค์งํ ๋ง์ (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13549๋ฒ - ์จ๋ฐ๊ผญ์ง3 (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13420๋ฒ - ์ฌ์น์ฐ์ฐ (0) | 2021.11.04 |
[๋ฐฑ์ค,c++] 13414๋ฒ - ์๊ฐ์ ์ฒญ (0) | 2021.11.04 |
๋๊ธ