• + 0 comments

    My solution in c# :

    int appleCounter = apples.Count(apple => (apple + a) >= s && (apple + a) <= t);
    int orangeCounter = oranges.Count(orange => (orange + b) >= s && (orange + b) <= t);
    
     Console.WriteLine(appleCounter);
     Console.WriteLine(orangeCounter);