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

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:12:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%*d %*d %*d");
                      ^

Code

#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef long double llf;

int n = 16;
int m = 1;
int k = 7;
int a[16];

int main(){
	scanf("%*d %*d %*d");
	int sum = 16 * 17 / 2;
	for(int i=0; i<2*k+1; i++){
		cin >> a[i];
		sum -= a[i];
	}
	a[15] = sum;
	for(int i=0; i<16; i++){
		if(a[i] == 1){
			if(i % 2 == 1) putchar('A');
			else putchar('B');
		}
	}
}

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)