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 05:30
The total revenues for a company are $150,223 and the total expenses were 125,766. if you are calculating the net income, which of these spreadsheets would you use? insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2-b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2+b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2/b3. the formula should be showing in the formula bar. insert a spreadsheet with $150,223 in cell b2 and 125, 766 in cell b3. enter a formula =b2*b3. the formula should be showing in the formula bar.
Answers: 3
question
Computers and Technology, 23.06.2019 01:10
Are special combinations of keys that tell a computer to perform a command. keypads multi-keys combinations shortcuts
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Fall protection, confined space entry procedures, controlled noise levels, and protection from chemical hazards are some of the things that contribute to a safe and
Answers: 1
question
Computers and Technology, 24.06.2019 15:00
Universal windows platform is designed for which windows 10 version?
Answers: 1
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, 22.08.2019 09:50
question
Biology, 22.08.2019 09:50
question
Mathematics, 22.08.2019 09:50
Questions on the website: 13722367