CSES - Datatähti Open 2017 - Results
Submission details
Task:Family reunion
Sender:Xagak
Submission time:2017-01-21 19:03:09 +0200
Language:C++
Status:READY
Result:0
Feedback
groupverdictscore
#1UNKNOWN0
#2UNKNOWN0
#3UNKNOWN0
Test results
testverdicttimegroup
#1UNKNOWN--1details
#2UNKNOWN--2details
#3UNKNOWN--3details

Code

#include <iostream>
using namespace std;
bool mark[32];
int main(){
    int a[19],b[19];
    int n,m,k;
    cin>>n>>m>>k;
    for(int i=0;i<15;i++){
        cin>>a[i];
        b[a[i]]=i;
        mark[a[i]]=true;
    }
    for(int i=1;i<=16;i++)
        if(!mark[i])
            a[15]=i;
    int h=0;
    if(b[1]<k)
        h=k-b[1];
    else
        h=n-b[1]+k;
    cout<<(h%2==0 ? 'A' : 'B')<<endl;
    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)