import java.util.Scanner;
//11044
public class SearchingForNessy {
static int testCases;
static int val1, val2;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
testCases = scanner.nextInt();
while((testCases--) != 0) {
val1 = scanner.nextInt();
val2 = scanner.nextInt();
val1 = val1/3;
val2 = val2/3;
System.out.println(val1 * val2);
}
scanner.close();
}
}
10/08/2013
11044 - Searching for Nessy - Java
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment