题解 | 成绩
成绩
https://www.nowcoder.com/practice/1dace93b7f5b452a804a6e10ff8b5fec
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
// 注意 hasNext 和 hasNextLine 的区别
while (in.hasNextInt()) { // 注意 while 处理多个 case
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
int d = (int)(a*0.2+b*0.3+c*0.5);
System.out.println(d);
}
}
}
