2012/11/03

UVa 10071 Back to High School Physics

被加入UVa社團,所以寫寫摟



#include <iostream>
using namespace std;

int main()
{
    int x,y;
    
    while(cin >> x >> y){
        if(!(x >=-100 && x <= 100) && !(y >= 0 && y <= 200))
            break;
            cout<< x * y * 2 <<endl;
    }
}

http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1012