← Back to List

23971번: ZOAC 4 ↗

Solutions

Python 3
85 B | 85 chars
h,w,n,m=map(int,input().split())
print((h//(n+1)+(h%(n+1)>0))*(w//(m+1)+(w%(m+1)>0)))