![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 23.11.2020 18:30 jungcoochie101
Se numeşte permutare a unei mulţimi finite orice rearanjare a tuturor elementelor acelei mulţimi.
Cerinţa
Se dă un şir cu n elemente, numere naturale. Să se verifice dacă reprezintă o permutare a mulţimii {1,2,...,n}.
Date de intrare
Programul citește de la tastatură numărul n, iar apoi cele n elemente ale şirului, separate prin spaţii.
Date de ieşire
Programul afișează pe ecran mesajul DA, dacă şirul reprezintă o permutare a mulţimii {1,2,...,n}, respectiv NU în caz contrar.
Restricţii şi precizări
1 ≤ n ≤ 100
Exemplul 1:
Date de intrare
5
2 5 4 3 1
Date de ieșire
DA
Exemplul 2:
Date de intrare
5
2 5 4 3 9
Date de ieșire
NU
Încărcare soluție
Lipește codul aici
![ansver](/tpl/images/cats/User.png)
Answers: 2
Another question on Computers and Technology
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 05:30
You are asked to calculate an object's velocity, in order to do so you must know the object's a. direction and speed. b. distance and time. c. speed and distance. d. direction and distance.
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 25.06.2019 06:00
Sam needs to create a spreadsheet for his coworkers. they will need to follow a crossed a long road of data. sam would like to make his spreadsheet easy to read. sam should
Answers: 1
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 26.06.2019 00:30
Network administration is concerned with which tasks?
Answers: 1
You know the right answer?
Se numeşte permutare a unei mulţimi finite orice rearanjare a tuturor elementelor acelei mulţimi.
C...
Questions
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2020 07:01
![question](/tpl/images/cats/biologiya.png)
![question](/tpl/images/cats/informatica.png)
Computers and Technology, 11.10.2020 07:01
![question](/tpl/images/cats/mat.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2020 07:01
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 11.10.2020 07:01
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2020 07:01
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2020 07:01
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/en.png)
English, 11.10.2020 07:01
![question](/tpl/images/cats/health.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2020 07:01
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2020 07:01
![question](/tpl/images/cats/fizika.png)
![question](/tpl/images/cats/en.png)
![question](/tpl/images/cats/mat.png)
Mathematics, 11.10.2020 07:01
![question](/tpl/images/cats/himiya.png)
Chemistry, 11.10.2020 07:01