AC

lkyLKY(祝忘羡99版)  •  12天前


include

using namespace std;

int main() {

int a[14] = {4, 7, 44, 47, 74, 77, 444, 447, 474, 477, 744, 747, 774, 777};
int n;
cin >> n;
bool f = true;
for (int i = 0; i < 14; i++) {
	if (n % a[i] == 0) {
		f = false;
		break;
	}
}
if (!f)
	cout << "YES";
else
	cout << "NO";
return 0;

}


评论:

请先登录,才能进行评论