Shivani and its Array Love
All submissions for this problem are available.
Shivani is a 10-year small girl.She loves to play with the array. She invented a new game with this.The game is -
An array of n number and a number k is given. She will select continuous subarray whose sum is less than or equal to k. Your task is to help Shivani.So you have to find the number of possibilities will she will select such type of subarray.
The First line contains N space-separated integer k donating the length and value of K respectively.
Next each line contains the elements of array.
Output number of possbile way to choose such type of sub array
these all have sum less than or equal to 10.Hence output will be 8
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, CS2|
Fetching successful submissions