delete pics to save space
This commit is contained in:
18
history_source/ccf 入门篇/U4/4.1.6.cpp
Normal file
18
history_source/ccf 入门篇/U4/4.1.6.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
#include<iostream>
|
||||
using namespace std;
|
||||
int main()
|
||||
{
|
||||
int n;
|
||||
int s;
|
||||
while(true)
|
||||
{
|
||||
cin>>n;
|
||||
s=0;
|
||||
for(int i=1;i*i<=n;i++)
|
||||
{
|
||||
if(n%i==0) s=s+2;
|
||||
if(i*i==n) s=s-1;
|
||||
}
|
||||
cout<<s<<endl;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user