subject

Se consideră un șir a[1], a[2], …, a[n] de numere întregi. Cerința Să se determine diferența maximă de forma a[i] - a[j], unde 1 ≤ i < j ≤ n. Date de intrare Programul citește de la tastatură numărul n, iar apoi șirul de n numere întregi, separate prin spații. Date de ieșire Programul va afișa pe ecran un singur număr întreg reprezentând diferența maximă cerută. Restricții și precizări 1 ≤ n ≤ 100 000 -1 000 000 000 ≤ a[i] ≤ 1 000 000 000

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:30
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
question
Computers and Technology, 22.06.2019 11:00
What is the foundation for proper monitoring, load balancing and routing in distributed systems
Answers: 3
question
Computers and Technology, 23.06.2019 21:40
language consists of basic components, and they are called a. 3; mental images, concepts, and speech b. 2; language acquisition and linguistic relativity c. 3; heuristics, algorithms, and analogies d. 4; phonemes, morphemes, syntax, and semantics e. 2; words and grammar
Answers: 3
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
You know the right answer?
Se consideră un șir a[1], a[2], …, a[n] de numere întregi. Cerința Să se determine diferența maximă...
Questions
question
Biology, 11.07.2019 14:40
Questions on the website: 13722363