Sicily 13292. The 4-Point Scale (四分制)

根据四分制,计算平均成绩转化为GPA的最小值和最大值。给定学生平均成绩和课程数量,需要求出GPA的可能范围。输入包含测试用例数及每个用例的平均成绩和课程数,输出精确到4位小数的GPA最小值和最大值。
摘要由CSDN通过智能技术生成

13292. The 4-Point Scale (四分制)

Constraints

Time Limit: 1 secs, Memory Limit: 256 MB

Description

Star: Using the 4-Point Scale, my GPA is 4.0.

OY & Joe: 学霸学霸,我们去哪里呀。明天考试到底会考什么?

Star: 学渣学渣,你不要再看啦,看完也记不住呀!

In fact, the AVERAGE SCORE of Star is calculated by the following formula:

AVERAGE SCORE =  ∑(Wi * SCOREi) / ∑(Wi) 1<=i<=N

where SCOREi represents the scores of every course and Wi represents the credit of the corresponding course.

To simplify the problem, we assume that the credit of each course is 1. In this way, the AVERAGE SCORE is ∑(SCOREi) / N. In addition, SCOREi are all integers between 60 and 100, and we guarantee that ∑(SCOREi) can be divided(整除) by N.

In SYSU, the university usually uses the A

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值