結果
問題 |
No.571 3人兄弟(その2)
|
ユーザー |
|
提出日時 | 2017-10-26 11:32:51 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 669 bytes |
コンパイル時間 | 1,332 ms |
コンパイル使用メモリ | 108,904 KB |
実行使用メモリ | 26,580 KB |
最終ジャッジ日時 | 2024-11-21 20:02:51 |
合計ジャッジ時間 | 1,745 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 2 |
other | RE * 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.Collections.Generic; using System.Linq; using System.Text; namespace YukiCoder { public class Brother { public static void Main() { Dictionary<string, List<int>> BroDic = new Dictionary<string, List<int>>() { {"A",new List<int>{int.Parse(Console.ReadLine()),int.Parse(Console.ReadLine())}}, {"B",new List<int>{int.Parse(Console.ReadLine()),int.Parse(Console.ReadLine())}}, {"C",new List<int>{int.Parse(Console.ReadLine()),int.Parse(Console.ReadLine())}}, }; foreach (var Value in BroDic.OrderByDescending(x => x.Value[0]).ThenBy(x => x.Value[1])) { Console.WriteLine(Value.Key); } } } }