Task: | Cetvrta |
Sender: | henrikaalto |
Submission time: | 2019-07-29 13:46:44 +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 |
Code
#include<bits/stdc++.h> using namespace std; #define all(x) x.begin(), x.end() using ii=long long; int main() { map<int, int> x; map<int, int> y; for (int j = 0; j < 3; ++j) { int X, Y; cin >> X >> Y; x[X]++; y[Y]++; } for (auto u : x) { if (u.second != 2) cout << u.first << " "; } for (auto u : y) { if (u.second != 2) cout << u.first << " "; } }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
2 2
1 2 1 1 |
correct output |
---|
2 1 |
user output |
---|
2 1 |
Test 2
Verdict: ACCEPTED
input |
---|
7 9
7 3 4 9 |
correct output |
---|
4 3 |
user output |
---|
4 3 |
Test 3
Verdict: ACCEPTED
input |
---|
11 13
11 23 21 23 |
correct output |
---|
21 13 |
user output |
---|
21 13 |
Test 4
Verdict: ACCEPTED
input |
---|
300 100
100 100 100 300 |
correct output |
---|
300 300 |
user output |
---|
300 300 |
Test 5
Verdict: ACCEPTED
input |
---|
592 203
592 929 493 203 |
correct output |
---|
493 929 |
user output |
---|
493 929 |