結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
bluemegane
|
| 提出日時 | 2018-09-10 19:14:53 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 34 ms / 2,000 ms |
| コード長 | 449 bytes |
| コンパイル時間 | 2,526 ms |
| コンパイル使用メモリ | 107,264 KB |
| 実行使用メモリ | 18,816 KB |
| 最終ジャッジ日時 | 2024-12-30 19:12:53 |
| 合計ジャッジ時間 | 3,612 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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 = "ABC";
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);
}
}
bluemegane