using System; using System.Collections.Generic; using System.ComponentModel; namespace yukicode { class No1475 { static void Main(string[] args) { int watchNum = int.Parse(Console.ReadLine()); Dictionary watchParts = new Dictionary(); for(int i = 0; i < watchNum; i++) { string[] watchInfo = Console.ReadLine().Split(' '); int partsNum = int.Parse(watchInfo[0]); int[] parts = new int[partsNum]; for(int j = 0; j < partsNum; j++) { parts[j] = int.Parse(watchInfo[j + 1]); } Array.Sort(parts); Array.Reverse(parts); watchParts.Add(i, parts); } for(int i = 0; i < watchNum; i++) { string str = ""; for(int j = 0; j < watchParts[i].Length; j++) { str += watchParts[i][j] + " "; } Console.WriteLine(str.Substring(0, str.Length - 1)); } return; } } }