Task: | Bijele |
Sender: | henrikaalto |
Submission time: | 2019-07-29 16:16:18 +0300 |
Language: | C++ (C++17) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.01 s | details |
#2 | ACCEPTED | 0.01 s | details |
#3 | ACCEPTED | 0.01 s | details |
#4 | ACCEPTED | 0.01 s | details |
#5 | ACCEPTED | 0.01 s | details |
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 |