답안 #605211

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
605211 2022-07-25T14:05:08 Z MohamedAhmed04 Team Contest (JOI22_team) C++14
8 / 100
2000 ms 3544 KB
#include <bits/stdc++.h>

using namespace std ;

const int MAX = 1e5 + 10 ;

int arr[MAX][3] ;
int n ;

int main()
{
	ios_base::sync_with_stdio(0) ;
	cin.tie(0) ;
	cin>>n ;
	for(int i = 0 ; i < n ; ++i)
		cin>>arr[i][0]>>arr[i][1]>>arr[i][2] ;
	int ans = -1 ;
	for(int i = 0 ; i < n ; ++i)
	{
		for(int j = 0 ; j < n ; ++j)
		{
			for(int k = 0 ; k < n ; ++k)
			{
				if(arr[i][0] > arr[j][0] && arr[i][0] > arr[k][0] && arr[j][1] > arr[i][1] && arr[j][1] > arr[k][1] && arr[k][2] > arr[i][2] && arr[k][2] > arr[j][2])
					ans = max(ans , arr[i][0] + arr[j][1] + arr[k][2]) ;
			}
		}
	}
	return cout<<ans<<"\n" , 0 ;
}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 54 ms 212 KB Output is correct
15 Correct 21 ms 340 KB Output is correct
16 Correct 32 ms 336 KB Output is correct
17 Correct 39 ms 328 KB Output is correct
18 Correct 43 ms 328 KB Output is correct
19 Correct 52 ms 320 KB Output is correct
20 Correct 39 ms 212 KB Output is correct
21 Correct 25 ms 212 KB Output is correct
22 Correct 30 ms 340 KB Output is correct
23 Correct 19 ms 212 KB Output is correct
24 Correct 26 ms 212 KB Output is correct
25 Correct 28 ms 324 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 54 ms 212 KB Output is correct
15 Correct 21 ms 340 KB Output is correct
16 Correct 32 ms 336 KB Output is correct
17 Correct 39 ms 328 KB Output is correct
18 Correct 43 ms 328 KB Output is correct
19 Correct 52 ms 320 KB Output is correct
20 Correct 39 ms 212 KB Output is correct
21 Correct 25 ms 212 KB Output is correct
22 Correct 30 ms 340 KB Output is correct
23 Correct 19 ms 212 KB Output is correct
24 Correct 26 ms 212 KB Output is correct
25 Correct 28 ms 324 KB Output is correct
26 Execution timed out 2080 ms 468 KB Time limit exceeded
27 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Runtime error 21 ms 3544 KB Execution killed with signal 11
12 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Runtime error 21 ms 3544 KB Execution killed with signal 11
12 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Runtime error 21 ms 3544 KB Execution killed with signal 11
12 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 0 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Runtime error 21 ms 3544 KB Execution killed with signal 11
12 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 300 KB Output is correct
5 Correct 1 ms 212 KB Output is correct
6 Correct 0 ms 212 KB Output is correct
7 Correct 0 ms 212 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 0 ms 212 KB Output is correct
11 Correct 1 ms 212 KB Output is correct
12 Correct 0 ms 212 KB Output is correct
13 Correct 1 ms 212 KB Output is correct
14 Correct 54 ms 212 KB Output is correct
15 Correct 21 ms 340 KB Output is correct
16 Correct 32 ms 336 KB Output is correct
17 Correct 39 ms 328 KB Output is correct
18 Correct 43 ms 328 KB Output is correct
19 Correct 52 ms 320 KB Output is correct
20 Correct 39 ms 212 KB Output is correct
21 Correct 25 ms 212 KB Output is correct
22 Correct 30 ms 340 KB Output is correct
23 Correct 19 ms 212 KB Output is correct
24 Correct 26 ms 212 KB Output is correct
25 Correct 28 ms 324 KB Output is correct
26 Execution timed out 2080 ms 468 KB Time limit exceeded
27 Halted 0 ms 0 KB -