Problem | Result | Memory | Time | Language | Code Length |
1450 | Accepted | 760K | 188MS | G++ | 358B |
#include <iostream>
#include <iomanip>
using namespace std;
//谢谢老师
int main()
{
int NUM;
cin>>NUM;
for(int i=0;i<NUM;i++)
{
int x,y;
cin>>x>>y;
cout<<"Scenario #"<<i+1<<":"<<endl;
double jg;
if((x*y)%2==0)
{
jg=(double)x*y;
}else
{
jg=(double)x*y+0.41;
}
cout<<setiosflags(ios::fixed)<<setprecision(2)<<jg<<endl<<endl;
}
return 0;
}