mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
21 lines
364 B
C++
21 lines
364 B
C++
|
#include<stdio.h>
|
||
|
int main()
|
||
|
{
|
||
|
__int64 n;
|
||
|
__int64 a[]={2,3,5,7};
|
||
|
while(scanf("%I64d",&n),n)
|
||
|
{
|
||
|
__int64 b[4]={1,1,1,1};
|
||
|
for(int i=0;i<4;i++)
|
||
|
{
|
||
|
while(n%a[i]==0)
|
||
|
{
|
||
|
b[i]++;
|
||
|
n=n/a[i];
|
||
|
}
|
||
|
}
|
||
|
printf("%I64d\n",b[0]*b[1]*b[2]*b[3]);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|