답안 #111780

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
111780 2019-05-16T07:03:25 Z imsifile 함수컵 박물관 (FXCUP4_museum) C++17
27 / 100
1000 ms 1024 KB
#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;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 384 KB Output is correct
2 Correct 2 ms 384 KB Output is correct
3 Correct 2 ms 384 KB Output is correct
4 Correct 2 ms 384 KB Output is correct
5 Correct 3 ms 384 KB Output is correct
6 Correct 3 ms 384 KB Output is correct
7 Correct 3 ms 256 KB Output is correct
8 Correct 13 ms 384 KB Output is correct
9 Correct 7 ms 384 KB Output is correct
10 Correct 7 ms 384 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 2 ms 384 KB Output is correct
2 Correct 2 ms 384 KB Output is correct
3 Correct 2 ms 384 KB Output is correct
4 Correct 2 ms 384 KB Output is correct
5 Correct 3 ms 384 KB Output is correct
6 Correct 3 ms 384 KB Output is correct
7 Correct 3 ms 256 KB Output is correct
8 Correct 13 ms 384 KB Output is correct
9 Correct 7 ms 384 KB Output is correct
10 Correct 7 ms 384 KB Output is correct
11 Correct 34 ms 512 KB Output is correct
12 Execution timed out 1047 ms 1024 KB Time limit exceeded
13 Halted 0 ms 0 KB -