結果

問題 No.571 3人兄弟(その2)
ユーザー gunmakengunmaken
提出日時 2018-03-19 00:37:32
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 69 ms / 2,000 ms
コード長 465 bytes
コンパイル時間 2,451 ms
コンパイル使用メモリ 105,348 KB
実行使用メモリ 25,920 KB
最終ジャッジ日時 2023-08-28 23:00:08
合計ジャッジ時間 4,434 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
21,964 KB
testcase_01 AC 66 ms
19,988 KB
testcase_02 AC 67 ms
23,876 KB
testcase_03 AC 68 ms
22,040 KB
testcase_04 AC 68 ms
23,868 KB
testcase_05 AC 67 ms
21,932 KB
testcase_06 AC 67 ms
21,900 KB
testcase_07 AC 68 ms
23,872 KB
testcase_08 AC 68 ms
23,840 KB
testcase_09 AC 68 ms
23,820 KB
testcase_10 AC 67 ms
19,756 KB
testcase_11 AC 69 ms
25,920 KB
testcase_12 AC 68 ms
22,032 KB
testcase_13 AC 69 ms
23,904 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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);
        }
    }
}
0