This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef int64_t ll;
int64_t CountSimilarPairs(vector<int> A,vector<int> B,vector<int> C) {
int n = A.size();
ll res = 0;
for(int i = 0; i < n; i++) for(int j = 0; j < i; j++) {
if(A[i]==A[j] || B[i]==B[j] || C[i]==C[j]) res++;
}
return res;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |