human
Find an array of size N having exactly K subarrays with sum S | Function to find array with K subarrays with sum S.
Driver Code.
Function call"
Solution in Python:
 Write me a code to find an array of size N having exactly K subarrays with sum S and the other steps required?
assistant
#Here is code to find an array of size N having exactly K subarrays with sum S and the other steps required.
 def SubarraysWithSumS ( n , k , s ) :
	for i in range ( k ) :
		print ( s , end = " ▁ " )
	for i in range ( k , n ) :
		print ( s + 1 , end = " ▁ " )
n = 4
k = 2
s = 3
SubarraysWithSumS ( n , k , s )