結果

問題 No.1131 Deviation Score
ユーザー curryudon08curryudon08
提出日時 2021-02-23 19:27:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 633 ms / 2,000 ms
コード長 455 bytes
コンパイル時間 1,328 ms
コンパイル使用メモリ 110,104 KB
実行使用メモリ 36,152 KB
最終ジャッジ日時 2023-10-23 20:36:29
合計ジャッジ時間 9,911 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 160 ms
27,520 KB
testcase_01 AC 43 ms
26,808 KB
testcase_02 AC 560 ms
35,460 KB
testcase_03 AC 272 ms
29,788 KB
testcase_04 AC 512 ms
34,992 KB
testcase_05 AC 210 ms
27,696 KB
testcase_06 AC 547 ms
35,384 KB
testcase_07 AC 276 ms
29,808 KB
testcase_08 AC 491 ms
34,808 KB
testcase_09 AC 199 ms
27,660 KB
testcase_10 AC 473 ms
34,668 KB
testcase_11 AC 488 ms
34,792 KB
testcase_12 AC 424 ms
30,820 KB
testcase_13 AC 547 ms
35,376 KB
testcase_14 AC 140 ms
27,444 KB
testcase_15 AC 138 ms
27,428 KB
testcase_16 AC 499 ms
34,880 KB
testcase_17 AC 216 ms
27,720 KB
testcase_18 AC 633 ms
36,152 KB
testcase_19 AC 36 ms
26,776 KB
testcase_20 AC 29 ms
26,516 KB
testcase_21 AC 28 ms
26,520 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.Linq;

namespace _1131
{
    class Program
    {
        static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());
            var v = Console.ReadLine().Split().Select(x => int.Parse(x)).ToArray();

            var a = v.Average();

            foreach(var m in v){
                var r = 50 - ((a - m) / 2);
                Console.WriteLine(Math.Floor(r));
            }
        }
    }
}
0