69502023-12-21 08:29:06MagyarKendeSZLGNegáló rendezés (55 pont)cpp17Wrong answer 25/5579ms12808 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
    int N;
    cin >> N;
    map<int, int> A;
    for (int i = 0; i < N; i++) {
        int Ai;
        cin >> Ai;
        A[Ai]++;
    }
    int i = 0, result = 1;
    for (auto entry : A) {
        if (i) {
            result = result * ++entry.second % 1'000'000'007;
        } else i++;
    }
    cout << result;
}
SubtaskSumTestVerdictTimeMemory
base25/55
1Accepted0/03ms1816 KiB
2Wrong answer0/064ms5628 KiB
3Accepted2/23ms2216 KiB
4Accepted2/23ms2428 KiB
5Accepted2/23ms2636 KiB
6Accepted2/23ms2888 KiB
7Accepted3/33ms3064 KiB
8Accepted2/23ms3300 KiB
9Accepted3/33ms3412 KiB
10Accepted3/372ms11928 KiB
11Accepted3/379ms12808 KiB
12Accepted3/337ms3508 KiB
13Wrong answer0/335ms3660 KiB
14Wrong answer0/352ms5456 KiB
15Wrong answer0/346ms3700 KiB
16Wrong answer0/364ms7236 KiB
17Wrong answer0/361ms7832 KiB
18Wrong answer0/350ms4948 KiB
19Wrong answer0/363ms6988 KiB
20Wrong answer0/356ms5804 KiB
21Wrong answer0/348ms4708 KiB
22Wrong answer0/343ms4120 KiB