#include <stdio.h> int main() { long No; float a,b,c; scanf("%ld;%f,%f,%f",&No,&a,&b,&c); printf("The each subject score of No. %ld is %.2f, %.2f, %.2f.\n",No,a,b,c); return 0; } 要注意输入格式问题,要和题目给出的格式保持一致