import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static int[] costlyIntervals(int n, int k, int[] A) { // Return a list of length n consisting of the answers int start=0,end=0,len=0; for(int i=0;i=k) { k=res; len=b.length; start=i; end=j; } } } int[] c=new int[n]; for(int i=0;i