結果
問題 |
No.571 3人兄弟(その2)
|
ユーザー |
|
提出日時 | 2018-03-19 00:37:32 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 465 bytes |
コンパイル時間 | 3,010 ms |
コンパイル使用メモリ | 107,648 KB |
実行使用メモリ | 19,584 KB |
最終ジャッジ日時 | 2024-12-30 13:31:04 |
合計ジャッジ時間 | 3,290 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 12 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Linq; using System.Collections.Generic; class Program { static void Main(string[] args) { var a = new Dictionary<char, List<int>>(); for (int i = 0; i < 3; i++) { a.Add((char)('A' + i), Console.ReadLine().Split().Select(x => int.Parse(x)).ToList()); } foreach (var i in a.OrderByDescending(x => x.Value[0]).ThenBy(x => x.Value[1])) { Console.WriteLine(i.Key); } } }