Task: | Sukujuhla |
Sender: | mangolassi |
Submission time: | 2017-01-19 16:22:17 +0200 |
Language: | C++ |
Status: | READY |
Result: | 19 |
group | verdict | score |
---|---|---|
#1 | UNKNOWN | 0 |
#2 | UNKNOWN | 0 |
#3 | UNKNOWN | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | UNKNOWN | -- | 1 | details |
#2 | UNKNOWN | -- | 2 | details |
#3 | UNKNOWN | -- | 3 | details |
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: UNKNOWN
input |
---|
#!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
correct output |
---|
50 |
user output |
---|
(not available) |
Test 2
Group: 2
Verdict: UNKNOWN
input |
---|
#!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
correct output |
---|
50 |
user output |
---|
(not available) |
Test 3
Group: 3
Verdict: UNKNOWN
input |
---|
#!/bin/bash set -e OFFSET=$(grep -onam1 '^__DATA_... |
correct output |
---|
50 |
user output |
---|
(not available) |