結果
| 問題 | No.570 3人兄弟(その1) | 
| コンテスト | |
| ユーザー |  bluemegane | 
| 提出日時 | 2018-09-10 19:13:09 | 
| 言語 | C#(csc) (csc 3.9.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 34 ms / 2,000 ms | 
| コード長 | 472 bytes | 
| コンパイル時間 | 3,971 ms | 
| コンパイル使用メモリ | 107,136 KB | 
| 実行使用メモリ | 18,944 KB | 
| 最終ジャッジ日時 | 2024-12-30 18:56:00 | 
| 合計ジャッジ時間 | 4,354 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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.Linq;
using System;
public class P
{
    public char n { get; set; }
    public int h { get; set; }
}
public class Hello
{
    public static void Main()
    {
        var name = new char[] { 'A', 'B', 'C' };
        var ps = new P[3];
        for (int i = 0; i < 3; i++)
            ps[i] = new P { n = name[i], h = int.Parse(Console.ReadLine().Trim()) };
        foreach (var x in ps.OrderByDescending(y =>y.h))
            Console.WriteLine(x.n);
    }
}
            
            
            
        