# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
290867 | 2020-09-04T14:07:36 Z | crossing0ver | W (RMI18_w) | C++17 | 97 ms | 5368 KB |
#include<bits/stdc++.h> #define ll long long #define pb push_back #define pii pair<int,int> #define vi vector<int> #define fi first #define se second #define all(x) (x).begin(),(x).end() using namespace std; int cnt[1000005],arr[300005]; main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; for (int i = 0; i< n; i++) { cin >> arr[i]; cnt[arr[i]]++; } sort(arr,arr+n); int a[2] = {}; int c= 0,ans = 1; for (int i = 1; i <= 1000000; i++) { if (cnt[i]) { c++; ans*=cnt[i] - 1; } } cout << ans*(c/2); }
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 384 KB | Output isn't correct |
2 | Incorrect | 3 ms | 384 KB | Output isn't correct |
3 | Incorrect | 8 ms | 512 KB | Output isn't correct |
4 | Incorrect | 29 ms | 1536 KB | Output isn't correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 384 KB | Output isn't correct |
2 | Incorrect | 3 ms | 384 KB | Output isn't correct |
3 | Incorrect | 10 ms | 4352 KB | Output isn't correct |
4 | Incorrect | 26 ms | 4608 KB | Output isn't correct |
5 | Incorrect | 46 ms | 3072 KB | Output isn't correct |
6 | Incorrect | 97 ms | 5368 KB | Output isn't correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 384 KB | Output isn't correct |
2 | Incorrect | 2 ms | 384 KB | Output isn't correct |
3 | Incorrect | 3 ms | 384 KB | Output isn't correct |
4 | Incorrect | 2 ms | 384 KB | Output isn't correct |
5 | Incorrect | 3 ms | 384 KB | Output isn't correct |
6 | Incorrect | 3 ms | 384 KB | Output isn't correct |
7 | Incorrect | 4 ms | 768 KB | Output isn't correct |
8 | Incorrect | 18 ms | 1152 KB | Output isn't correct |
9 | Incorrect | 31 ms | 1152 KB | Output isn't correct |
10 | Incorrect | 71 ms | 5368 KB | Output isn't correct |