77102024-01-10 14:24:27adamNegáló rendezés (55 pont)cpp17Wrong answer 25/5579ms12716 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int count = 0;
    cin >> count;
    int lowest = 2e9+7;
    map<int, int> quantity;
    for (int i = 0; i < count; i++) {
        int num;
        cin >> num;
        if (num < lowest) lowest = num;
        quantity[num]++;
    }
    int solution = 1;
    for (pair<int, int> num : quantity) {
        if (num.first == lowest) continue;
        solution *= num.second+1;
        solution = solution % 1000000007;
    }

    cout << solution << endl;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base25/55
1Accepted0/03ms1812 KiB
2Wrong answer0/061ms5628 KiB
3Accepted2/23ms2272 KiB
4Accepted2/23ms2328 KiB
5Accepted2/22ms2400 KiB
6Accepted2/22ms2416 KiB
7Accepted3/33ms2540 KiB
8Accepted2/23ms2788 KiB
9Accepted3/33ms3172 KiB
10Accepted3/371ms11616 KiB
11Accepted3/379ms12716 KiB
12Accepted3/337ms3556 KiB
13Wrong answer0/334ms3768 KiB
14Wrong answer0/352ms5900 KiB
15Wrong answer0/343ms4100 KiB
16Wrong answer0/363ms7484 KiB
17Wrong answer0/359ms8104 KiB
18Wrong answer0/348ms5236 KiB
19Wrong answer0/361ms7288 KiB
20Wrong answer0/354ms6252 KiB
21Wrong answer0/346ms5144 KiB
22Wrong answer0/341ms4352 KiB