{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\n 江西财经大学对本科生的成绩施行平均学分绩点制(GPA)。既将学生的实际考分根据不同的学科的不同学分按一定的公式进行计算。\n \u003cbr\u003e\n 公式如下:\n \u003cbr\u003e\n 实际成绩 绩点\n \u003cbr\u003e\n 90—100 4.0\n \u003cbr\u003e\n 85—89 3.7\n \u003cbr\u003e\n 82—84 3.3\n \u003cbr\u003e\n 78—81 3.0\n \u003cbr\u003e\n 75—77 2.7\n \u003cbr\u003e\n 72—74 2.3\n \u003cbr\u003e\n 68—71 2.0\n \u003cbr\u003e\n 64—67 1.5\n \u003cbr\u003e\n 60—63 1.0\n \u003cbr\u003e\n 60以下 0\n \u003cbr\u003e\n 1.一门课程的学分绩点\u003d该课绩点*该课学分\n \u003cbr\u003e\n 2.总评绩点\u003d所有学科绩点之和/所有课程学分之和\n \u003cbr\u003e\n 现要求你编写程序求出某人A的总评绩点(GPA)。\n "}},{"title":"Input","value":{"format":"HTML","content":"\n 第一行 总的课程数n(n\u0026lt;10);\n \u003cbr\u003e\n 第二行 相应课程的学分(两个学分间用空格隔开);\n \u003cbr\u003e\n 第三行 对应课程的实际得分;\n \u003cbr\u003e\n 此处输入的所有数字均为整数。\n \u003cbr\u003e\n "}},{"title":"Output","value":{"format":"HTML","content":"\n 输出有一行,总评绩点,精确到小数点后2位小数。(printf(\"%.2f\",GPA);)\n "}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5\n4 3 4 2 3\n91 88 72 69 56\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e2.52\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}