using System.Collections.Generic;
public static void Main()
Console.WriteLine($">>>>>>>{perf}");
public static int FindPerf(int[] speed, int[] eff, int current, int minEff, int speedSum){
if(current>=speed.Length){
return speedSum * minEff;
int currentPerf=(speed[current]+speedSum) * Math.Min(eff[current], minEff);
if(((speed[current]+speedSum+speed[min])*Math.Min(Math.Min(eff[current], minEff), eff[min])>=currentPerf))
FindPerf(speed, eff, min, speed[current]+speedSum, Math.Min(eff[current], minEff)),
FindPerf(speed, eff, current+1, 999, 0));