Task: | Family reunion |
Sender: | Deemo1 |
Submission time: | 2017-01-22 01:57:23 +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<bits/stdc++.h> using namespace std; int n, m, k, a[20], mark[20]; int main(){ cin >> n >> m >> k; if (n == 16){ for (int i = 0; i < k+k+1; i++) cin >> a[i], mark[a[i]] = 1; for (int i = 1; i <= n; i++) if (!mark[i]) a[n - 1] = i; int q = a[k]; for (int i = 0; i < n; i++) if (a[i] == 1){ rotate(a, a + i, a+n); break; } for (int i = 0; i < n; i++) if (a[i] == q){ if (i & 1) cout << "A\n"; else cout << "B\n"; break; } } return 0; }
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) |