#include<iostream>
#include<string.h>
using namespace std;
int main() {
int n;
int arr[50] = { 0 };
int temp[50] = { 0 };
int index = 0;
int index2 = 0;
cin >> n;
for (int i = 1; i <= n; i++)
{
if (n%i == 0)
{
arr[index] = i;
index++;
}
}
for (int i = 0; i <= arr[i] != '\0'; i++)
{
for (int j = 1; j <= arr[i]; j++)
{
if (arr[i] % j == 0)
{
temp[index2]++;
}
}
cout << temp[index2] << endl;
index2++;
}
for (int i = 0; i <= temp[i]!='\0'; i++)
{
cout << temp[i] << " ";
}
}
11번 (0) |
2020.08.26 |
10번 (0) |
2020.08.26 |
8번 (0) |
2020.08.25 |
7번 (0) |
2020.08.25 |
6번 (0) |
2020.08.25 |