#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
while(cin>>a>>b)
{
cout<<2*a*b<<endl;
if(a==-1 && b==-1)
{
break;
}
}
}
Problem submitted with runtime = 0.410
Do comment for better algorithm or lesser runtime solution.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment