From 14f7f84ca9159e3a8143546357806e0b2100ac29 Mon Sep 17 00:00:00 2001 From: kushal jain Date: Sun, 6 Oct 2019 16:02:16 +0530 Subject: [PATCH] added a solution to codeforces problem domino-piling --- C/domino-piling.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 C/domino-piling.c diff --git a/C/domino-piling.c b/C/domino-piling.c new file mode 100644 index 0000000..30fe032 --- /dev/null +++ b/C/domino-piling.c @@ -0,0 +1,14 @@ + //solution to domino-piling problem on code forces + +#include +#include + + int main() { + int m,n,a,cnt; + scanf("%d %d",&m,&n); + //no. of domino tiles required will be total area divided by area of one tile (2) + a=m*n; + cnt=a/2; + printf("%d",cnt); + return 0; + }