Submission #764124

#TimeUsernameProblemLanguageResultExecution timeMemory
764124idkhandleFunctionCup Museum (FXCUP4_museum)C++17
27 / 100
1071 ms1100 KiB
#include "museum.h" #include <bits/stdc++.h> using namespace std; using ll = long long; ll CountSimilarPairs(vector<int> B, vector<int> T, vector<int> G) { int n = B.size(); int ans = 0; for (int i = 0; i < n; i++) { for (int j = i + 1; j < n; j++) { if (B[i] == B[j] || T[i] == T[j] || G[i] == G[j]) ++ans; } } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...