| ||||||||||
| 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:bluegenelove at 2007-06-06 14:54:21 > #include <iostream>
> using namespace std;
>
> int main ()
> {
> int n;
>
> while (cin>>n)
> if (n!=0)
> if (n%2)
> cout<<n-1<<endl;
> else
> cout<<"No Solution!"<<endl;
> return 0;
> }
>
> 这是我写的源代码,这个题还是比较简单的
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator