题解 | #牛牛的短信#
牛牛的短信
https://www.nowcoder.com/practice/435c9e2bf4f84bee99b82ce84e95b0b7
#include<iostream> int main() { unsigned int n, val; float sum = 0.0; scanf("%d", &n); for (int i = 0; i < n; i++) { scanf("%d ", &val); if (val > 60) sum += 0.2; else sum += 0.1; } printf("%.1f", sum); return 0; }#菜狗的解题#