human
Minimum sprinklers required to water a rectangular park | Function to find the minimum number sprinklers required to water the park ..
General requirements of sprinklers.
if M is odd then add one additional sprinklers.
Driver code"
How can the above be solved in Python?

What is a code to minimum sprinklers required to water a rectangular park and the other steps required?
assistant
#Here is code to minimum sprinklers required to water a rectangular park and the other steps required.
 def solve ( N , M ) :
	ans = int ( ( N ) * int ( M / 2 ) )
	if ( M % 2 == 1 ) :
		ans += int ( ( N + 1 ) / 2 )
	print ( ans )
N = 5
M = 3
solve ( N , M )