結果

問題 No.570 3人兄弟(その1)
ユーザー curryudon08curryudon08
提出日時 2020-06-14 13:43:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 519 bytes
コンパイル時間 2,554 ms
コンパイル使用メモリ 103,800 KB
実行使用メモリ 23,788 KB
最終ジャッジ日時 2023-09-09 13:50:58
合計ジャッジ時間 3,706 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,828 KB
testcase_01 AC 62 ms
23,784 KB
testcase_02 AC 61 ms
21,740 KB
testcase_03 AC 61 ms
23,788 KB
testcase_04 AC 62 ms
23,788 KB
testcase_05 AC 61 ms
21,840 KB
testcase_06 AC 61 ms
21,796 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;

namespace _0570
{
    class Program
    {
        static void Main(string[] args)
        {
            var h = new Tuple<char,int>[3];
            h[0] = Tuple.Create('A', int.Parse(Console.ReadLine()));
            h[1] = Tuple.Create('B', int.Parse(Console.ReadLine()));
            h[2] = Tuple.Create('C', int.Parse(Console.ReadLine()));

            foreach(var t in h.OrderByDescending(x => x.Item2)){
                Console.WriteLine(t.Item1);
            }
        }
    }
}
0