#include <stdio.h> #include <math.h>
int main() { int A, B, C; scanf("%d %d %d", &A, &B, &C);
double total = A * 0.2 + B * 0.3 + C * 0.5; int rounded = (int)round(total);
printf("%d\n", rounded); return 0;
}
註冊一個 南阳理工学院OJ 通用賬戶,您就可以在我們提供的所有線上評測服務上提交程式碼、參與討論。
使用您的 南阳理工学院OJ 通用賬戶