結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
kmtrc130
|
| 提出日時 | 2019-03-19 12:04:09 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 2,000 ms |
| コード長 | 823 bytes |
| コンパイル時間 | 3,146 ms |
| コンパイル使用メモリ | 113,008 KB |
| 実行使用メモリ | 27,312 KB |
| 最終ジャッジ日時 | 2024-09-13 16:23:06 |
| 合計ジャッジ時間 | 2,306 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
コンパイルメッセージ
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;
class Program
{
public void Solve()
{
List<KeyValuePair<string, int[]>> HW = new List<KeyValuePair<string, int[]>>();
HW.Add(new KeyValuePair<string, int[]>("A", Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()));
HW.Add(new KeyValuePair<string, int[]>("B", Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()));
HW.Add(new KeyValuePair<string, int[]>("C", Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray()));
foreach (var item in HW.OrderByDescending(x => x.Value[0]).ThenBy(x => x.Value[1]))
{
Console.WriteLine(item.Key);
}
}
static void Main()
{
var solver = new Program();
solver.Solve();
}
}
kmtrc130