'commit'
This commit is contained in:
17
TangDou/XiTi/1139.cpp
Normal file
17
TangDou/XiTi/1139.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int n;
|
||||
cin >> n;
|
||||
float money = 0;
|
||||
for (int i = 0; i < n; ++i) {
|
||||
int count;
|
||||
cin >> count;
|
||||
money += count / 70 * 0.1;
|
||||
if (count % 70 > 0) money += 0.1;
|
||||
}
|
||||
cout << money << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user