Skip to content

Instantly share code, notes, and snippets.

@Jack-Saleem
Last active January 15, 2016 13:10
Show Gist options
  • Select an option

  • Save Jack-Saleem/34cd903f3a49fe227b80 to your computer and use it in GitHub Desktop.

Select an option

Save Jack-Saleem/34cd903f3a49fe227b80 to your computer and use it in GitHub Desktop.
Codeforces 50A DominoPiling program in java
import java.util.Scanner;
public class DominoPiling
{
public static void main(String args[])
{
Scanner ip = new Scanner(System.in);
double a=ip.nextInt();
double b=ip.nextInt();
double c=a*b;
System.out.println((int)Math.floor(c/2));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment