Skip to content

Instantly share code, notes, and snippets.

@peter279k
Created December 22, 2015 02:07
Show Gist options
  • Save peter279k/e6c80578a1060ec0ea3e to your computer and use it in GitHub Desktop.
Save peter279k/e6c80578a1060ec0ea3e to your computer and use it in GitHub Desktop.
import java.util.*;
public class main{
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
long result = 0;
while(input.hasNext()) {
long v = input.nextLong();
long s = input.nextLong();
result = v * s * 2;
System.out.print(result + "\r\n");
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment