取名不要太长,像我这样刚刚好 • 5个月前
using namespace std;
int main() {
int n, count = 0, a[15] = {4, 7, 44, 47, 74, 77, 444, 447, 474, 477, 744, 747, 774, 777};
scanf("%d", &n); for (int i = 0; i < 14; i++) {
if (n % a[i] == 0) {
count++;
}
} if (count == 0) {
printf("NO");
} else {
printf("YES");
} return 0; }
评论:
请先登录,才能进行评论