| Task: | Sukujuhla |
| Sender: | On |
| Submission time: | 2017-01-19 16:08:56 +0200 |
| Language: | C++ |
| Status: | READY |
| Result: | 19 |
| group | verdict | score |
|---|---|---|
| #1 | ACCEPTED | 19 |
| #2 | WRONG ANSWER | 0 |
| #3 | WRONG ANSWER | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | ACCEPTED | 0.10 s | 1 | details |
| #2 | WRONG ANSWER | 0.11 s | 2 | details |
| #3 | WRONG ANSWER | 1.27 s | 3 | details |
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 |
|---|
| #!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
| correct output |
|---|
| 50 |
| user output |
|---|
| A B A ... Truncated |
Test 2
Group: 2
Verdict: WRONG ANSWER
| input |
|---|
| #!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
| correct output |
|---|
| 50 |
| user output |
|---|
| B B B ... Truncated |
Test 3
Group: 3
Verdict: WRONG ANSWER
| input |
|---|
| #!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
| correct output |
|---|
| 50 |
| user output |
|---|
| B B B ... Truncated |
