답안 #764124

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
764124 2023-06-23T07:28:20 Z idkhandle 함수컵 박물관 (FXCUP4_museum) C++17
27 / 100
1000 ms 1100 KB
#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;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 232 KB Output is correct
3 Correct 1 ms 300 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 8 ms 340 KB Output is correct
9 Correct 4 ms 308 KB Output is correct
10 Correct 5 ms 340 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 232 KB Output is correct
3 Correct 1 ms 300 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
7 Correct 1 ms 312 KB Output is correct
8 Correct 8 ms 340 KB Output is correct
9 Correct 4 ms 308 KB Output is correct
10 Correct 5 ms 340 KB Output is correct
11 Correct 23 ms 472 KB Output is correct
12 Execution timed out 1071 ms 1100 KB Time limit exceeded
13 Halted 0 ms 0 KB -