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

为什么这样做不对,提交不了!!!

Posted by lotus420 at 2013-09-24 17:00:00 on Problem 1450
#include<iostream>
using namespace std;

int main()
{
	int icase;//测试列数
	cin>>icase;
	int number;
	for(number=1;number<=icase;number++)
	{
		int n,m;
		cin>>m>>n;
		cout<<"Scenario #:"<<number<<endl;
		if(m%2&&n%2)
		{
		    cout<<m*n+0.41<<endl;
		}else
		{
			//cout<<"Scenario #:"<<number<<endl;
	        cout<<m*n<<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