https://www.acmicpc.net/problem/13458
int
범위...!!!
#include <vector>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int N, B, C;
vector<int> room;
long long ans = 0;
cin >> N;
for (int i = 0; i < N; i++) {
int tmp;
cin >> tmp;
room.push_back(tmp);
}
cin >> B >> C;
for (int i = 0; i < room.size(); i++) {
room[i] -= B;
ans++;
}
for (int i = 0; i < room.size(); i++) {
if (room[i] > 0) {
ans += room[i] / C;
if (room[i] % C != 0) ans++;
}
}
cout << ans;
return 0;
}