Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- public class Program
- {
- public static void Main()
- {
- int[] point = Console.ReadLine().Split(' ').Select(x => Convert.ToInt32(x)).ToArray();
- Array.Sort(point);
- Console.WriteLine(Math.Min(point[2] - point[1] + point[2] - point[0], point[2] - point[1] + point[1] - point[0]));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement