Submission #757934

# Submission time Handle Problem Language Result Execution time Memory
757934 2023-06-14T02:13:29 Z SanguineChameleon Archery (IOI09_archery) C++17
4 / 100
38 ms 6272 KB
#include <bits/stdc++.h>
using namespace std;

void just_do_it();

int main() {
	#ifdef KAMIRULEZ
		freopen("kamirulez.inp", "r", stdin);
		freopen("kamirulez.out", "w", stdout);
	#endif
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	just_do_it();
	return 0;
}

const int maxN = 2e5 + 20;
int a[maxN * 2];
int N, R, K;

void just_do_it() {
	cin >> N >> R >> K;
	for (int i = 1; i <= N * 2 - 1; i++) {
		cin >> a[i];
	}
	if (N == 1) {
		cout << 1;
		return;
	}
	if (K == 1) {
		cout << N;
		return;
	}
	if (K == N * 2) {
		cout << 2;
		return;
	}
	assert(false);
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Correct 1 ms 340 KB Output is correct
3 Runtime error 1 ms 468 KB Execution killed with signal 6
4 Runtime error 1 ms 484 KB Execution killed with signal 6
5 Correct 1 ms 212 KB Output is correct
6 Correct 1 ms 212 KB Output is correct
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 468 KB Execution killed with signal 6
2 Runtime error 1 ms 468 KB Execution killed with signal 6
3 Runtime error 1 ms 468 KB Execution killed with signal 6
4 Runtime error 4 ms 852 KB Execution killed with signal 6
5 Runtime error 31 ms 5392 KB Execution killed with signal 6
6 Runtime error 1 ms 468 KB Execution killed with signal 6
7 Runtime error 1 ms 460 KB Execution killed with signal 6
8 Runtime error 3 ms 852 KB Execution killed with signal 6
9 Runtime error 4 ms 980 KB Execution killed with signal 6
10 Runtime error 1 ms 468 KB Execution killed with signal 6
11 Runtime error 4 ms 1084 KB Execution killed with signal 6
12 Runtime error 1 ms 468 KB Execution killed with signal 6
13 Runtime error 20 ms 3940 KB Execution killed with signal 6
14 Runtime error 2 ms 596 KB Execution killed with signal 6
15 Runtime error 6 ms 1288 KB Execution killed with signal 6
16 Runtime error 1 ms 468 KB Execution killed with signal 6
17 Runtime error 1 ms 468 KB Execution killed with signal 6
18 Runtime error 1 ms 468 KB Execution killed with signal 6
19 Runtime error 1 ms 596 KB Execution killed with signal 6
20 Runtime error 2 ms 596 KB Execution killed with signal 6
21 Runtime error 5 ms 1024 KB Execution killed with signal 6
22 Runtime error 6 ms 1236 KB Execution killed with signal 6
23 Runtime error 35 ms 5596 KB Execution killed with signal 6
24 Runtime error 1 ms 468 KB Execution killed with signal 6
25 Runtime error 1 ms 468 KB Execution killed with signal 6
26 Runtime error 2 ms 600 KB Execution killed with signal 6
27 Runtime error 5 ms 980 KB Execution killed with signal 6
28 Runtime error 25 ms 4020 KB Execution killed with signal 6
29 Runtime error 1 ms 468 KB Execution killed with signal 6
30 Runtime error 2 ms 592 KB Execution killed with signal 6
31 Runtime error 4 ms 984 KB Execution killed with signal 6
32 Runtime error 32 ms 5536 KB Execution killed with signal 6
33 Runtime error 1 ms 468 KB Execution killed with signal 6
34 Runtime error 1 ms 468 KB Execution killed with signal 6
35 Runtime error 1 ms 464 KB Execution killed with signal 6
36 Runtime error 2 ms 468 KB Execution killed with signal 6
37 Runtime error 4 ms 852 KB Execution killed with signal 6
38 Runtime error 5 ms 1108 KB Execution killed with signal 6
39 Runtime error 1 ms 468 KB Execution killed with signal 6
40 Runtime error 1 ms 468 KB Execution killed with signal 6
41 Runtime error 1 ms 468 KB Execution killed with signal 6
42 Runtime error 2 ms 468 KB Execution killed with signal 6
43 Runtime error 2 ms 596 KB Execution killed with signal 6
44 Runtime error 3 ms 724 KB Execution killed with signal 6
45 Runtime error 4 ms 980 KB Execution killed with signal 6
46 Runtime error 7 ms 1108 KB Execution killed with signal 6
47 Runtime error 38 ms 6272 KB Execution killed with signal 6