65392023-12-08 10:26:31NeMNegáló rendezés (55 pont)cpp17Wrong answer 0/5537ms5368 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int n;
	cin >> n;
	vector <int> a (n, 0);
	for (int i = 0; i < n; i++) {
		int temp;
		cin >> temp;

		a[temp]++;
	}

	long long counter = 1;
	for (int i = 0; i < a.size(); i++) {
		counter = counter * (a[i] + 1);
	}

	cout << counter % 1000000007;
	return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/55
1Accepted0/03ms1816 KiB
2Wrong answer0/037ms2968 KiB
3Wrong answer0/23ms2476 KiB
4Runtime error0/23ms2480 KiB
5Runtime error0/23ms2760 KiB
6Runtime error0/23ms2976 KiB
7Runtime error0/33ms3236 KiB
8Runtime error0/23ms3064 KiB
9Runtime error0/33ms3324 KiB
10Runtime error0/33ms4004 KiB
11Wrong answer0/335ms4408 KiB
12Wrong answer0/335ms4480 KiB
13Wrong answer0/332ms4472 KiB
14Wrong answer0/335ms4392 KiB
15Wrong answer0/335ms4492 KiB
16Wrong answer0/335ms4672 KiB
17Runtime error0/33ms4900 KiB
18Wrong answer0/335ms4832 KiB
19Wrong answer0/335ms5152 KiB
20Runtime error0/33ms5280 KiB
21Runtime error0/33ms5244 KiB
22Wrong answer0/335ms5368 KiB