Submission #111780

#TimeUsernameProblemLanguageResultExecution timeMemory
111780imsifileFunctionCup Museum (FXCUP4_museum)C++17
27 / 100
1047 ms1024 KiB
#include "museum.h" using namespace std; long long CountSimilarPairs(int N, vector<int> B, vector<int> T, vector<int> G) { long long cnt=0; for(int i=0; i<N; i++){ for(int j=0; j<i; 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...