# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
152889 | 2qbingxuan | FunctionCup Museum (FXCUP4_museum) | C++17 | 2 ms | 256 KiB |
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;
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;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |