{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"北京大学对本科生的成绩施行平均学分绩点制(GPA)。既将学生的实际考分根据不同的学科的不同学分按一定的公式进行计算。\u003cbr\u003e公式如下:\u003cbr\u003e实际成绩 绩点\u003cbr\u003e90——100 4.0\u003cbr\u003e85——89 3.7\u003cbr\u003e82——84 3.3\u003cbr\u003e78——81 3.0\u003cbr\u003e75——77 2.7\u003cbr\u003e72——74 2.3\u003cbr\u003e68——71 2.0\u003cbr\u003e64——67 1.5\u003cbr\u003e60——63 1.0\u003cbr\u003e60以下 0\u003cbr\u003e1.一门课程的学分绩点\u003d该课绩点*该课学分\u003cbr\u003e2.总评绩点\u003d所有学科绩点之和/所有课程学分之和\u003cbr\u003e现要求你编写程序求出某人A的总评绩点(GPA)。"}},{"title":"Input","value":{"format":"HTML","content":"第一行 总的课程数n(n\u0026lt;10);\u003cbr\u003e第二行 相应课程的学分(两个学分间用空格隔开);\u003cbr\u003e第三行 对应课程的实际得分;\u003cbr\u003e此处输入的所有数字均为整数。\u003cbr\u003e"}},{"title":"Output","value":{"format":"HTML","content":"输出有一行,总评绩点,精确到小数点后2位小数。(printf(\"%.2f\",GPA);)"}},{"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\r\n4 3 4 2 3\r\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"}}]}