| Task: | Sukujuhla |
| Sender: | fergusq |
| Submission time: | 2017-01-19 16:59:16 +0200 |
| Language: | C++ |
| Status: | READY |
| Result: | 19 |
| group | verdict | score |
|---|---|---|
| #1 | ACCEPTED | 19 |
| #2 | RUNTIME ERROR | 0 |
| #3 | RUNTIME ERROR | 0 |
| test | verdict | time | group | |
|---|---|---|---|---|
| #1 | ACCEPTED | 0.10 s | 1 | details |
| #2 | RUNTIME ERROR | 0.01 s | 2 | details |
| #3 | RUNTIME ERROR | 0.03 s | 3 | details |
Code
#include <iostream>
using namespace std;
int main() {
int n, m, k;
cin >> n >> m >> k;
if (n != 16 || m != 1 || k != 7) {
cout << "LOL\n";
return 1;
}
int l = 17;
for (int i = 0; i < n-1; i++) {
int x;
cin >> x;
if (x == 1) l = i;
}
cout << (l%2==0?"A":"B") << "\n";
}
Test details
Test 1
Group: 1
Verdict: ACCEPTED
| input |
|---|
| #!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
| correct output |
|---|
| 50 |
| user output |
|---|
| B A B ... Truncated |
Test 2
Group: 2
Verdict: RUNTIME ERROR
| input |
|---|
| #!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
| correct output |
|---|
| 50 |
| user output |
|---|
| LOL |
Test 3
Group: 3
Verdict: RUNTIME ERROR
| input |
|---|
| #!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
| correct output |
|---|
| 50 |
| user output |
|---|
| LOL |
