CSES - COCI 2007/2008 #2 - Results
Submission details
Task:Bijele
Sender:henrikaalto
Submission time:2019-07-29 16:16:18 +0300
Language:C++ (C++17)
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.01 sdetails
#2ACCEPTED0.01 sdetails
#3ACCEPTED0.01 sdetails
#4ACCEPTED0.01 sdetails
#5ACCEPTED0.01 sdetails

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:8:15: warning: unused variable 'N' [-Wunused-variable]
     const int N = 6;
               ^

Code

#include<bits/stdc++.h>
using namespace std;
#define all(x) x.begin(), x.end()
using ii=long long;
int main()
{
    const int lol[] = {1,1,2,2,2,8};
    const int N = 6;
    for (int i = 0; i < 6; ++i) {
        int x;
        cin >> x;
        cout << lol[i] - x << " ";
    }
}

Test details

Test 1

Verdict: ACCEPTED

input
1 2 2 2 1 8

correct output
0 -1 0 0 1 0

user output
0 -1 0 0 1 0 

Test 2

Verdict: ACCEPTED

input
8 2 2 2 1 1

correct output
-7 -1 0 0 1 7

user output
-7 -1 0 0 1 7 

Test 3

Verdict: ACCEPTED

input
5 6 2 7 2 4

correct output
-4 -5 0 -5 0 4

user output
-4 -5 0 -5 0 4 

Test 4

Verdict: ACCEPTED

input
0 3 5 4 1 3

correct output
1 -2 -3 -2 1 5

user output
1 -2 -3 -2 1 5 

Test 5

Verdict: ACCEPTED

input
5 6 1 0 8 1

correct output
-4 -5 1 2 -6 7

user output
-4 -5 1 2 -6 7