(UVA) 10071 - Back to High School Physics - Solução
import java.io.*;
import java.util.*;
import java.lang.Math;
class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
Main processando = new Main();
processando.takeInput();
System.exit(0);
}
void takeInput() throws NumberFormatException, IOException {
String entrada = "";
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while ((entrada = br.readLine()) != null) {
String[] str = entrada.split(" ");
Integer a = Integer.parseInt(str[0]);
Integer b = Integer.parseInt(str[1]);
System.out.println((a*b)*2);
}
return;
}
}
import java.util.*;
import java.lang.Math;
class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
Main processando = new Main();
processando.takeInput();
System.exit(0);
}
void takeInput() throws NumberFormatException, IOException {
String entrada = "";
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
while ((entrada = br.readLine()) != null) {
String[] str = entrada.split(" ");
Integer a = Integer.parseInt(str[0]);
Integer b = Integer.parseInt(str[1]);
System.out.println((a*b)*2);
}
return;
}
}
Comments
Post a Comment