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 17:06:290
2017-01-19 16:22:1719
Task:Sukujuhla
Sender:mangolassi
Submission time:2017-01-19 16:22:17
Language:C++
Status:READY
Score:19

Feedback

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

Test results

testverdicttime (s)group
#1ACCEPTED0.12 / 10.001details
#2WRONG ANSWER0.17 / 10.002details
#3WRONG ANSWER1.38 / 10.003details

Code

#include <iostream>


int abs(int a) {
	return a < 0 ? -a : a;
}

int adj[15];

int main() {
	std::ios_base::sync_with_stdio(false);
	//std::cin.tie(0);

	int n, m, k;
	std::cin >> n >> m >> k;
	for (int a = 0; a < m; ++a) {
		int place = 15;
		for (int i = 0; i < 2 * k + 1; ++i) {
			std::cin >> adj[i];
			if (adj[i] == 16) {
				place = i;
			}
		}
		if (abs(place - 7) % 2) {
			std::cout << "A\n";
		} else {
			std::cout << "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
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
B
B
...
view   save