您的位置:首页 > 其它

POJ 1450

2015-06-09 14:01 423 查看
#include <iostream>
using namespace std;

int main()
{
//freopen("acm.acm","r",stdin);
int test;
int r;
int c;
cin>>test;
int time = 0;
while(test --)
{
cin>>r>>c;
cout<<"Scenario #"<<++ time<<":"<<endl;
if(r*c % 2 == 0)
{
cout<<r*c<<".00"<<endl;
}
else
cout<<r*c<<".41"<<endl;
cout<<endl;
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: