Submission #152890

#TimeUsernameProblemLanguageResultExecution timeMemory
1528902qbingxuanFunctionCup Museum (FXCUP4_museum)C++17
27 / 100
1081 ms1244 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...