Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
802 B
3
Indexable
Never
#include <bits/stdc++.h>
#define endl "\n"
#define ll long long
#define IO ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
using namespace std;

int main() {
    IO;
    int tc, n, m, k, a;
    cin >> tc;
    while (tc--) {
        cin >> n >> m >> k;
        vector<int> v(n);
        for (int i = 0; i < n; i++) {
            cin >> a;
            v.push_back(a);
        }
        int count = 0;
        for (int i = 0; i < n; i++) {
            if (v[i] > m) {
                if (v[i] % m == 0) {
                    count += (v[i] / m);
                }
                else {
                    count += ((v[i] - (v[i] % m)) / m);
                }
            }
        }
        cout << count << endl;
        cout << (10 - (10 % 6)) / 6;
    }
    return 0;
}
Leave a Comment