OJ-Problems-Source/QUSTOJ/1907.cpp

17 lines
205 B
C++
Raw Normal View History

2016-12-07 19:02:04 +08:00
#include <iostream>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int a,b,c,d;
cin>>a>>b>>c>>d;
cout<<a*b/2<<" "<<c*d<<endl;
}
return 0;
}