Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.Scanner;
- public class Third {
- static Scanner in = new Scanner(System.in);
- static PrintWriter out = new PrintWriter(System.out, true);
- public static void main(String[] args) {
- int n = in.nextInt(), m = in.nextInt(), k;
- k=(n+1)*(m+1)*n*m / 4;
- out.print(k);
- out.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement