Alex Larose

Generation

translateThu, 18 May 2023

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.

Script //sample input 5 3 10 1 10 1 10 //sample output 3

Questions about programming?Chat with your personal AI assistant