Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions C/domino-piling.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//solution to domino-piling problem on code forces

#include <stdio.h>
#include <math.h>

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;
}