5 条题解
-
0
#include <bits/stdc++.h> using namespace std;
int main() { int n; cin >> n; double s = 0; int a[105]; for (int i = 0; i < n; i++) { cin >> a[i]; s = s + a[i]; } if (s >= 100) { cout << fixed << setprecision(2) << 100 + (s - 100) * 0.9; } else {
cout << fixed << setprecision(2) << s; } return 0;}
- 1
信息
- ID
- 30151
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- 递交数
- 136
- 已通过
- 50
- 上传者
