Advertisement
mr1302

Untitled

Oct 24th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1. import java.io.*;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class Third {
  6.     static Scanner in = new Scanner(System.in);
  7.     static PrintWriter out = new PrintWriter(System.out, true);
  8.    
  9.    
  10.  
  11.     public static void main(String[] args) {
  12.         int n = in.nextInt(), m = in.nextInt(), k;
  13.        
  14.         k=(n+1)*(m+1)*n*m / 4;
  15.        
  16.         out.print(k);
  17.         out.close();
  18.   }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement