Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
汗,毫无心理准备就AC了~~晕死#include<iostream> #include<cmath> using namespace std; int main() { int n; cin>>n; n*=2; double m=n; int x=sqrt(m); int sum=0; for(int i=1;i<=x;i++)if(n%i==0&&(n/i)%2!=i%2)sum++; cout<<sum<<endl; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator