답안 #796181

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
796181 2023-07-28T07:31:52 Z 이성호(#10070) Security Guard (JOI23_guard) C++17
25 / 100
39 ms 1108 KB
#include <iostream>
#include <numeric>
#include <algorithm>
using namespace std;
int S[200005];
int N, M, Q;
int main()
{
    ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
    cin >> N >> M >> Q;
    for (int i = 1; i <= N; i++) cin >> S[i];
    int x;
    for (int i = 2; i < 2 * N; i++) cin >> x;
    cout << accumulate(S+2, S+N, 0LL) + *max_element(S+1, S+N+1) << '\n';
}
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 30 ms 980 KB Output is correct
3 Correct 31 ms 980 KB Output is correct
4 Correct 30 ms 1108 KB Output is correct
5 Correct 31 ms 1104 KB Output is correct
6 Correct 30 ms 1108 KB Output is correct
7 Correct 31 ms 1084 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 30 ms 980 KB Output is correct
3 Correct 31 ms 980 KB Output is correct
4 Correct 30 ms 1108 KB Output is correct
5 Correct 31 ms 1104 KB Output is correct
6 Correct 30 ms 1108 KB Output is correct
7 Correct 31 ms 1084 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 38 ms 1088 KB Output is correct
11 Correct 39 ms 1108 KB Output is correct
12 Correct 38 ms 980 KB Output is correct
13 Correct 37 ms 1088 KB Output is correct
14 Correct 37 ms 1088 KB Output is correct
15 Correct 38 ms 1088 KB Output is correct
16 Correct 38 ms 1108 KB Output is correct
17 Correct 37 ms 1056 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 30 ms 980 KB Output is correct
3 Correct 31 ms 980 KB Output is correct
4 Correct 30 ms 1108 KB Output is correct
5 Correct 31 ms 1104 KB Output is correct
6 Correct 30 ms 1108 KB Output is correct
7 Correct 31 ms 1084 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 38 ms 1088 KB Output is correct
11 Correct 39 ms 1108 KB Output is correct
12 Correct 38 ms 980 KB Output is correct
13 Correct 37 ms 1088 KB Output is correct
14 Correct 37 ms 1088 KB Output is correct
15 Correct 38 ms 1088 KB Output is correct
16 Correct 38 ms 1108 KB Output is correct
17 Correct 37 ms 1056 KB Output is correct
18 Incorrect 0 ms 212 KB Output isn't correct
19 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 30 ms 980 KB Output is correct
3 Correct 31 ms 980 KB Output is correct
4 Correct 30 ms 1108 KB Output is correct
5 Correct 31 ms 1104 KB Output is correct
6 Correct 30 ms 1108 KB Output is correct
7 Correct 31 ms 1084 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 38 ms 1088 KB Output is correct
11 Correct 39 ms 1108 KB Output is correct
12 Correct 38 ms 980 KB Output is correct
13 Correct 37 ms 1088 KB Output is correct
14 Correct 37 ms 1088 KB Output is correct
15 Correct 38 ms 1088 KB Output is correct
16 Correct 38 ms 1108 KB Output is correct
17 Correct 37 ms 1056 KB Output is correct
18 Incorrect 0 ms 212 KB Output isn't correct
19 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 0 ms 212 KB Output isn't correct
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 30 ms 980 KB Output is correct
3 Correct 31 ms 980 KB Output is correct
4 Correct 30 ms 1108 KB Output is correct
5 Correct 31 ms 1104 KB Output is correct
6 Correct 30 ms 1108 KB Output is correct
7 Correct 31 ms 1084 KB Output is correct
8 Correct 0 ms 212 KB Output is correct
9 Correct 0 ms 212 KB Output is correct
10 Correct 38 ms 1088 KB Output is correct
11 Correct 39 ms 1108 KB Output is correct
12 Correct 38 ms 980 KB Output is correct
13 Correct 37 ms 1088 KB Output is correct
14 Correct 37 ms 1088 KB Output is correct
15 Correct 38 ms 1088 KB Output is correct
16 Correct 38 ms 1108 KB Output is correct
17 Correct 37 ms 1056 KB Output is correct
18 Incorrect 0 ms 212 KB Output isn't correct
19 Halted 0 ms 0 KB -