题解 | #KiKi算期末成绩#
KiKi算期末成绩
https://www.nowcoder.com/practice/4ef07b4f80fc4027a4b90e2245f8f637
#include <stdio.h> int main() { int exper = 0; int perfor = 0; int pro = 0; int exam = 0; while (4 == scanf("%d %d %d %d", &exper, &perfor, &pro, &exam)) { printf("%.1f\n", exper * 0.2 + perfor * 0.1 + pro * 0.2 + exam * 0.5); } }