题目来源:牛客网 编程初学者入门训练 BC132 KiKi算期末成绩

import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a,b,c,d;
double result = 0.0;
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
d = sc.nextInt();
result = a*0.2 + b*0.1 + c*0.2 + d*0.5;
System.out.println(String.format("%.1f",result));
}
}
最后
以上就是雪白便当最近收集整理的关于牛客网 编程初学者入门训练 BC132 KiKi算期末成绩的全部内容,更多相关牛客网内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复