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 |
这也叫题目吗...#include<iostream> using namespace std; int main() { int n,i,sum=1; cin>>n; n*=2; for(i=2;i*i<n;i++) { if((n-i*i)%i==0&&(n-i*i)/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