package hackerrank;

import java.util.Scanner;

/**
 * https://www.hackerrank.com/challenges/lego-blocks
 */
public class LegoBlocks {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // TODO
    }
}

@@ -128,16 +128,107 @@
 locks %7B%0A
+    private static int legoBlocks(int n, int m) %7B%0A        // TODO%0A        return 0;%0A    %7D%0A%0A
     publ
@@ -313,28 +313,224 @@
 n);%0A        
-// TODO
+int testCases = in.nextInt();%0A        for (int t = 0; t %3C testCases; t++) %7B%0A            int n = in.nextInt();%0A            int m = in.nextInt();%0A            System.out.println(legoBlocks(n, m));%0A        %7D
 %0A    %7D%0A%7D%0A

Update Lego Blocks