結果
問題 | No.570 3人兄弟(その1) |
ユーザー | abL8ZLsTbF |
提出日時 | 2017-10-15 12:04:02 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 591 bytes |
コンパイル時間 | 2,827 ms |
コンパイル使用メモリ | 105,548 KB |
実行使用メモリ | 21,792 KB |
最終ジャッジ日時 | 2023-08-11 04:32:22 |
合計ジャッジ時間 | 3,994 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 62 ms
21,768 KB |
testcase_01 | AC | 62 ms
21,780 KB |
testcase_02 | AC | 62 ms
21,792 KB |
testcase_03 | AC | 63 ms
21,556 KB |
testcase_04 | AC | 60 ms
21,664 KB |
testcase_05 | AC | 61 ms
21,772 KB |
testcase_06 | AC | 64 ms
21,720 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.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; class Program { static void Main(string[] args) { var bro = new Brother[3]; for (int i = 0; i < 3; i++) { bro[i] = new Brother { Height = int.Parse(Console.ReadLine()), Name = (char)('A' + i) }; } var ordered = bro.OrderByDescending(i => i.Height).Select(i => i.Name); foreach (var item in ordered) { Console.WriteLine(item); } } public class Brother { public int Height { get; set; } public char Name { get; set; } } }