質問: [ [int(e) for e in input().split()] for _ in range(N) ] data.sort(key=itemgetter(0),reverse=True) print(data) #出力値 [30, 45, 72] [27, 33, 59] [27, 35, 77] [15, 20, 35] [15, 20, 31] [3, 5, 9] ```
回答: ヒント1:Pythonソートチートシート - Qiita ヒント2: ``` >>> sorted([[3,5,1,4],[4,2,3,4],[9,1,4,4],[7,4,1,9]]) [[3, 5, 1, 4], [4, 2, 3, 4], [7, 4, 1, 9], [9, 1, 4, 4]] ```