| ||||||||||
| 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 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator