- 1. Eingabe, Druck und Zahlen
- 2. Ganzzahl und Gleitzahl
- 3. Bedingungen: Wenn-dann-sonst
- 4. Für Schleife mit Bereich
- 5. Saiten
- 6. While-Schleife
- 7. Listen
- 8. Funktionen und Rekursion
- 9. Zweidimensionale Listen (Arrays)
- 10. Sätze
- 11. Wörterbücher
- 12. JavaScript
- 13. HTML5 and CSS
- 14. Responsive Design with Bootstrap
- 15. jQuery
Ad place
Unique elements
Statement
Given a list of numbers, find and print the elements that appear in the list only once. The elements must be printed in the order in which they occur in the original list.Advertising by Google, may be based on your interests
In all the problems input the data using input()
and print the result using print()
.
12# Read an integer:# a = int(input())XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Input:
11 2 2 3 3 3XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output:
1XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Saved solutions
Tests
Input | Correct answer | |
---|---|---|
1 2 2 3 3 3 | 1 | |
4 3 5 2 5 1 3 5 | 4 2 1 | |
6 9 6 23 12 19 14 26 | 9 23 12 19 14 26 | |
21 21 16 20 28 28 7 | 16 20 7 | |
21 | 21 | |
5 2 29 4 28 8 | 5 2 29 4 28 8 | |
4 2 9 3 2 9 7 8 4 | 3 7 8 |