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 ...
view   save

correct output
50

view   save

user output
A

B

A
...
view   save

Test 2

Group: 2

Verdict: WRONG ANSWER

input
1000 10 7
30 40 56 57 74 84 87 91 118 12...
view   save

correct output
50

view   save

user output
B

B

B
...
view   save

Test 3

Group: 3

Verdict: WRONG ANSWER

input
1000000000 1000 3
2465407 36450077 43121743 6275...
view   save

correct output
50

view   save

user output
B

B

B
...
view   save