Code Submission Evaluation System Login

Datatähti 2017 loppu

Start:2017-01-19 12:15:00
End:2017-01-19 17:15:00
 

Tasks | Messages | Scoreboard | Statistics


CSES - Datatähti 2017 loppu - Results
History
2017-01-19 16:08:5619
2017-01-19 16:06:510
Task:Sukujuhla
Sender:On
Submission time:2017-01-19 16:08:56
Language:C++
Status:READY
Score:19

Feedback

groupverdictscore
#1ACCEPTED19
#2WRONG ANSWER0
#3WRONG ANSWER0

Test results

testverdicttime (s)group
#1ACCEPTED0.15 / 10.001details
#2WRONG ANSWER0.16 / 10.002details
#3WRONG ANSWER1.21 / 10.003details

Code

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;

int main() {
	cin.tie(0);
	ios_base::sync_with_stdio(false);
	
	int n, m, k, o = 1;
	cin >> n >> m >> k;
	
	vector<int> v(2 * k + 1);
	
	for(int i = 0; i < 2 * k + 1; i++) {
		cin >> v[i];
		if(v[i] == 13) o = i % 2;
	}
	
	cout << ((o+k+1) % 2 == 0 ? "A\n" : "B\n");
}

Test details

Test 1

Group: 1

Verdict: ACCEPTED

input
16 1 7
15 1 11 3 2 10 12 7 14 9 16 5 ...
10-4
16 1 7
1 11 3 2 10 12 7 14 9 16 5 4 6...
10-4
16 1 7
11 3 2 10 12 7 14 9 16 5 4 6 1...
10-4
16 1 7
3 2 10 12 7 14 9 16 5 4 6 13 8...
10-4
16 1 7
2 10 12 7 14 9 16 5 4 6 13 8 1...
10-4
16 1 7
10 12 7 14 9 16 5 4 6 13 8 15 ...
10-4
16 1 7
12 7 14 9 16 5 4 6 13 8 15 1 1...
...
view   save

correct output
50
view   save

user output
A

B

A

B

A

B

A

B

A

B

...
view   save

Test 2

Group: 2

Verdict: WRONG ANSWER

input
1000 10 7
30 40 56 57 74 84 87 91 118 12...
1 16 18 22 32 43 65 66 78 85 8...
3 13 20 24 26 28 39 42 48 51 7...
31 44 62 69 73 75 80 101 122 1...
6 9 23 34 58 67 88 90 113 135 ...
14 36 37 45 49 60 68 76 93 115...
2 4 25 46 55 83 92 102 104 121...
5 15 33 35 52 53 59 63 64 81 9...
10 12 21 27 29 41 47 50 54 61 ...
7 8 11 17 19 38 70 71 95 107 1...
10-4
1000 10 7
40 56 57 74 84 87 91 118 125 1...
16 18 22 32 43 65 66 78 85 89 ...
13 20 24 26 28 39 42 48 51 72 ...
44 62 69 73 75 80 101 122 124 ...
9 23 34 58 67 88 90 113 135 13...
36 37 45 49 60 68 76 93 115 11...
4 25 46 55 83 92 102 104 121 1...
...
view   save

correct output
50
view   save

user output
B

B

B

B

B

B

B

B

B

B

...
view   save

Test 3

Group: 3

Verdict: WRONG ANSWER

input
1000000000 1000 3
2465407 36450077 43121743 6275...
1083290 5807424 13391324 21119...
8163559 16279539 35818152 3993...
3235607 8571726 13994138 34548...
35178178 36788366 59597594 748...
43534006 79748141 93037571 931...
25768558 39747760 40870298 622...
13620225 32307080 32364539 329...
11309506 12446950 30415582 430...
22371561 31245307 41083254 490...
6277248 6978498 14473081 29446...
1377623 7619129 10994237 22221...
18423968 22769140 61698605 661...
423674 5226520 6186399 2293138...
8829902 9205037 14563667 20026...
6579586 10556947 12026076 3193...
view   save

correct output
50
view   save

user output
B

B

B

B

B

B

B

B

B

B

...
view   save