結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
はまやんはまやん
|
| 提出日時 | 2019-06-22 15:36:03 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 65 ms / 5,000 ms |
| コード長 | 570 bytes |
| コンパイル時間 | 2,230 ms |
| コンパイル使用メモリ | 106,112 KB |
| 実行使用メモリ | 25,472 KB |
| 最終ジャッジ日時 | 2024-12-26 09:10:43 |
| 合計ジャッジ時間 | 4,462 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
コンパイルメッセージ
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;
namespace proconCSharp
{
class Program
{
static int GetInt()
{
return int.Parse(Console.ReadLine());
}
static int[] GetInts()
{
return Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
}
static void Main()
{
var N = GetInt();
var L = GetInts();
var ans = L.GroupBy(x => x).Select(g => g.Count() * 10 + g.First()).Max() % 10;
Console.WriteLine($"{ans}");
}
}
}
はまやんはまやん