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; 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