UVa10071

題目:
https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=1012

1
2
3
4
5
6
7
8
9
10
11
12
#include <iostream>

using namespace std;

int main(){
int v, t;
while(cin >> v >> t){
// v-t圖下面積 (兩倍v*兩倍t/2,簡化後成2*v*t)
cout << 2*v*t << '\n';
}
return 0;
}