Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:比较简单的题,两句话就过了

Posted by bluegenelove at 2007-06-06 14:54:56 on Problem 3210
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator