题解 | #KiKi算期末成绩#

KiKi算期末成绩

https://www.nowcoder.com/practice/4ef07b4f80fc4027a4b90e2245f8f637

using System;
public class Program {
    public static void Main() {
        int[] soc = 字符串数组转换为整型数组(Console.ReadLine().Split(" "));
        Console.WriteLine("{0:0.0}",soc[0]*0.2 + soc[1]*0.1 + soc[2]*0.2 + soc[3]*0.5);
    }

    static int[] 字符串数组转换为整型数组(string[] str)
    {
        int[] i = new int[str.Length];
        int num = 0;
        foreach(var s in str)
        {
            i[num] = int.Parse(s);
            num++;
        }

        return i;
    }
}

全部评论

相关推荐

我:“加班需要有加班工资。” hr:“为什么?” 哈哈哈哈哈哈哈离大谱
juntenor:你确实太理想化了,对社会不了解呀。这个和HR没有关系,这是国内特色,不然怎么还会有外包就这种逆天的存在呢。
点赞 评论 收藏
分享
牛客38347925...:9,2学生暑期实习失利开始投小厂,给这群人整自信了
点赞 评论 收藏
分享
每晚夜里独自颤抖:这个在牛客不是老熟人了吗
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务