結果
問題 | No.570 3人兄弟(その1) |
ユーザー |
|
提出日時 | 2018-02-17 20:04:38 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 499 bytes |
コンパイル時間 | 992 ms |
コンパイル使用メモリ | 113,132 KB |
実行使用メモリ | 26,996 KB |
最終ジャッジ日時 | 2024-06-24 12:18:55 |
合計ジャッジ時間 | 1,783 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 5 |
コンパイルメッセージ
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; using System.Collections.Generic; class Program { static void Main(string[] args) { Dictionary<char, int> di = new Dictionary<char, int>(); for (int i = 0; i < 3; i++) { int a = int.Parse(Console.ReadLine()); di.Add((char)('A' + i), a); } var sorted = di.OrderByDescending(x => x.Value); foreach (var i in sorted) { Console.WriteLine(i.Key); } } }