Alex Larose

Generation

generate functionThu, 18 May 2023

Input First line of the input will contain two space separated integers N and K. Next and last line of the input contains N space separated integers Output Print the answer to the given test case in a separate line.

def add(a, b): return a + b add(1, 2)

Questions about programming?Chat with your personal AI assistant