题解 | #KiKi算期末成绩#
KiKi算期末成绩
http://www.nowcoder.com/practice/4ef07b4f80fc4027a4b90e2245f8f637
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int syscore=sc.nextInt(); int ktscore=sc.nextInt(); int gkscore=sc.nextInt(); int qgscore=sc.nextInt(); System.out.printf("%.1f",syscore*0.2+ktscore*0.1+gkscore*0.2+qgscore*0.5); } }