結果
問題 | No.570 3人兄弟(その1) |
ユーザー | gunmaken |
提出日時 | 2018-02-17 20:04:38 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 55 ms / 2,000 ms |
コード長 | 499 bytes |
コンパイル時間 | 3,243 ms |
コンパイル使用メモリ | 106,348 KB |
実行使用メモリ | 23,892 KB |
最終ジャッジ日時 | 2023-09-06 17:53:23 |
合計ジャッジ時間 | 4,564 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 55 ms
23,892 KB |
testcase_01 | AC | 51 ms
19,692 KB |
testcase_02 | AC | 50 ms
23,868 KB |
testcase_03 | AC | 53 ms
21,696 KB |
testcase_04 | AC | 53 ms
21,760 KB |
testcase_05 | AC | 52 ms
21,840 KB |
testcase_06 | AC | 51 ms
21,856 KB |
コンパイルメッセージ
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); } } }