結果

問題 No.1131 Deviation Score
ユーザー keymoonkeymoon
提出日時 2020-12-31 19:47:26
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 229 ms / 2,000 ms
コード長 578 bytes
コンパイル時間 4,393 ms
コンパイル使用メモリ 104,000 KB
実行使用メモリ 36,940 KB
最終ジャッジ日時 2023-09-10 12:35:51
合計ジャッジ時間 8,559 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
24,944 KB
testcase_01 AC 76 ms
23,972 KB
testcase_02 AC 210 ms
36,120 KB
testcase_03 AC 135 ms
27,472 KB
testcase_04 AC 200 ms
33,864 KB
testcase_05 AC 119 ms
26,908 KB
testcase_06 AC 207 ms
34,092 KB
testcase_07 AC 136 ms
27,400 KB
testcase_08 AC 194 ms
35,464 KB
testcase_09 AC 117 ms
24,844 KB
testcase_10 AC 187 ms
33,284 KB
testcase_11 AC 194 ms
33,340 KB
testcase_12 AC 172 ms
28,232 KB
testcase_13 AC 208 ms
32,048 KB
testcase_14 AC 102 ms
26,824 KB
testcase_15 AC 102 ms
26,888 KB
testcase_16 AC 197 ms
33,396 KB
testcase_17 AC 121 ms
24,868 KB
testcase_18 AC 229 ms
36,940 KB
testcase_19 AC 77 ms
23,872 KB
testcase_20 AC 68 ms
23,628 KB
testcase_21 AC 70 ms
23,528 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
public static class P
{
    public static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var avg = a.Average();

        Console.WriteLine(string.Join("\n", a.Select(x => Floor(50 - (avg - x) / 2))));
    }
}
0