Task: | Family reunion |
Sender: | koosaga |
Submission time: | 2017-01-21 09:56:46 +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 |
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) |