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, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
Jake really works well with numbers and is skilled with computers but doesn't work well with others. which of the jobs discussed in this unit might be best for jake? why?
Answers: 3
question
Computers and Technology, 25.06.2019 08:10
A(n) is a step-by-step direction for performing a specific task, which is written in a language the computer can understand.servercachearrayprogram
Answers: 1
question
Computers and Technology, 25.06.2019 15:00
Most lo/to hazards occur under the following circumstances, except: a) regular operation b) maintenance c) cleaning d) repair
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
Mathematics, 16.01.2021 06:40
question
History, 16.01.2021 06:40
question
Mathematics, 16.01.2021 06:40
question
Mathematics, 16.01.2021 06:40
Questions on the website: 13722361