結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-02-17 20:56:35 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 497 bytes |
| コンパイル時間 | 5,173 ms |
| コンパイル使用メモリ | 113,540 KB |
| 実行使用メモリ | 27,504 KB |
| 最終ジャッジ日時 | 2024-06-24 12:19:35 |
| 合計ジャッジ時間 | 2,418 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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.Linq;
using System.Collections.Generic;
class Program {
static void Main(string[] args) {
var di = new Dictionary<char, int>();
for (int i = 0; i < 3; i++) {
var d = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
di.Add((char)('A' + i), d[0] * 100 - d[1]);
}
var s = di.OrderByDescending(x => x.Value);
foreach (var i in s) {
Console.WriteLine(i.Key);
}
}
}