Submission #851624

#TimeUsernameProblemLanguageResultExecution timeMemory
851624wuuvyFunctionCup Museum (FXCUP4_museum)C++17
27 / 100
1063 ms1116 KiB
#include "museum.h" long long CountSimilarPairs(std::vector<int> B, std::vector<int> T, std::vector<int> G) { long long n = B.size(); long long cnt=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]) cnt++; } } return cnt; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...