| ||||||||||
| 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 | |||||||||
Re:这也叫题目吗...In Reply To:这也叫题目吗... Posted by:aa2985759 at 2010-11-19 12:12:51 > #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