Advertisement
moltenx

Untitled

May 10th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1.  
  2. import java.util.*;
  3. public class uva11044 {
  4.     public static void main(String [] args) {
  5.         Scanner scn = new Scanner(System.in);
  6.         int n = scn.nextInt();
  7.         for(int x=0;x<n;x++) {
  8.             int a = scn.nextInt();
  9.             int b = scn.nextInt();
  10.             System.out.println((a/3)*(b/3));
  11.         }
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement