結果

問題 No.445 得点
ユーザー papinianuspapinianus
提出日時 2016-12-02 13:21:14
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 67 ms / 2,000 ms
コード長 964 bytes
コンパイル時間 4,966 ms
コンパイル使用メモリ 105,316 KB
実行使用メモリ 25,992 KB
最終ジャッジ日時 2023-09-12 08:02:22
合計ジャッジ時間 6,545 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
23,932 KB
testcase_01 AC 65 ms
21,764 KB
testcase_02 AC 66 ms
23,964 KB
testcase_03 AC 66 ms
23,888 KB
testcase_04 AC 66 ms
25,992 KB
testcase_05 AC 66 ms
23,996 KB
testcase_06 AC 66 ms
23,952 KB
testcase_07 AC 66 ms
23,996 KB
testcase_08 AC 66 ms
23,816 KB
testcase_09 AC 67 ms
23,924 KB
testcase_10 AC 67 ms
23,856 KB
testcase_11 AC 67 ms
23,948 KB
testcase_12 AC 66 ms
23,880 KB
testcase_13 AC 67 ms
23,816 KB
testcase_14 AC 67 ms
25,868 KB
testcase_15 AC 67 ms
25,820 KB
testcase_16 AC 67 ms
25,908 KB
testcase_17 AC 67 ms
25,916 KB
testcase_18 AC 66 ms
21,848 KB
testcase_19 AC 66 ms
23,784 KB
testcase_20 AC 67 ms
25,904 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 No445
{
    class Program
    {
        static void Main(string[] args)
        {
            var inputs = Console.ReadLine().ToIntArray(' ');
            Console.WriteLine(CalcurateScore(inputs[0], inputs[1]));
        }

        static string CalcurateScore(int n, int k)
        {
            return Math.Floor((50*n)+((50*n)/(0.8+0.2*k))).ToString();
        }
    }

    static class StringExtention
    {
        public static string[] ToStringArray(this string value, char splitChar)
        {
            return value.Split(splitChar);
        }
        public static int[] ToIntArray(this string value, char splitChar)
        {
            return value.Split(splitChar).Select(x=>Convert.ToInt32(x)).ToArray();
        }
        public static long[] ToLongArray(this string value, char splitChar)
        {
            return value.Split(splitChar).Select(x => Convert.ToInt64(x)).ToArray();
        }
    }
}
0