結果

問題 No.571 3人兄弟(その2)
ユーザー kmtrc130kmtrc130
提出日時 2019-03-19 12:04:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 823 bytes
コンパイル時間 3,665 ms
コンパイル使用メモリ 107,124 KB
実行使用メモリ 23,912 KB
最終ジャッジ日時 2023-10-11 17:23:03
合計ジャッジ時間 4,070 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
23,876 KB
testcase_01 AC 65 ms
21,820 KB
testcase_02 AC 65 ms
21,952 KB
testcase_03 AC 65 ms
23,872 KB
testcase_04 AC 65 ms
21,860 KB
testcase_05 AC 65 ms
23,840 KB
testcase_06 AC 65 ms
21,836 KB
testcase_07 AC 66 ms
23,912 KB
testcase_08 AC 66 ms
23,872 KB
testcase_09 AC 66 ms
22,024 KB
testcase_10 AC 66 ms
21,964 KB
testcase_11 AC 65 ms
23,768 KB
testcase_12 AC 66 ms
21,828 KB
testcase_13 AC 67 ms
21,924 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.Collections.Generic;
using System.Linq;

class Program
{
    public void Solve()
    {
        List<KeyValuePair<string, int[]>> HW = new List<KeyValuePair<string, int[]>>();
        HW.Add(new KeyValuePair<string, int[]>("A", Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()));
        HW.Add(new KeyValuePair<string, int[]>("B", Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()));
        HW.Add(new KeyValuePair<string, int[]>("C", Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()));

        foreach (var item in HW.OrderByDescending(x => x.Value[0]).ThenBy(x => x.Value[1]))
        {
            Console.WriteLine(item.Key);
        }
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0