結果

問題 No.571 3人兄弟(その2)
ユーザー gunmakengunmaken
提出日時 2018-02-17 20:56:35
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 497 bytes
コンパイル時間 2,037 ms
コンパイル使用メモリ 107,144 KB
実行使用メモリ 24,116 KB
最終ジャッジ日時 2023-09-06 17:54:02
合計ジャッジ時間 3,687 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
19,864 KB
testcase_01 AC 56 ms
21,988 KB
testcase_02 AC 58 ms
22,032 KB
testcase_03 AC 59 ms
21,956 KB
testcase_04 AC 57 ms
24,028 KB
testcase_05 AC 53 ms
21,972 KB
testcase_06 AC 55 ms
22,052 KB
testcase_07 AC 60 ms
21,904 KB
testcase_08 AC 60 ms
23,968 KB
testcase_09 AC 60 ms
24,116 KB
testcase_10 AC 60 ms
23,956 KB
testcase_11 AC 60 ms
24,056 KB
testcase_12 AC 61 ms
21,908 KB
testcase_13 AC 54 ms
21,964 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 di = new Dictionary<char, int>();
        for (int i = 0; i < 3; i++) {
            var d = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
            di.Add((char)('A' + i), d[0] * 100 - d[1]);
        }
        var s = di.OrderByDescending(x => x.Value);
        foreach (var i in s) {
            Console.WriteLine(i.Key);
        }
    }
}
0