Last active
January 15, 2016 13:10
-
-
Save Jack-Saleem/34cd903f3a49fe227b80 to your computer and use it in GitHub Desktop.
Codeforces 50A DominoPiling program in java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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