using System; using System.Collections.Generic; using System.Linq; namespace PracticeAtCoder { class Program { static void Main(string[] args) { //021平均 //入力 string sA = Console.ReadLine(); string sB = Console.ReadLine(); int x = int.Parse(sA); int i = 0; String sC = Console.ReadLine(); int y = int.Parse(sC); int xMax = y; int xMin = y; for(i = 1; i y) xMin = y; // Console.WriteLine(xMax+" "+xMin); } Console.WriteLine(xMax -xMin); // 出力:c } } }