subject

Se citește un număr natural nenul n. se umple, pe linii, partea de sub diagonală, inclusiv aceasta, a unui tabel pătratic de dimensiune l cu secvențe consecutive de numere : 1, 2, … , n. astfel, pentru n=5 și l=7 se obține triunghiul de valori: 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 4 5 1 2 3 cerinţa: fiind dați n și l precum și un indice de coloană c să se calculeze suma valorilor din triunghi aflate pe coloana c. date de intrare: fișierul periodic. in cu următoarea structură: pe prima și singura linie valorile n, l, și c cu semnificația din enunț. date de ieşire: fișierul periodic. out cu următoarea structură: pe prima și singura linie valoarea s cu semnificația din enunț. restricții și precizări  1< =n< =1000, 1< =l< =10.000.000, 1< =c< =l. exemplu: periodic. in periodic. out explicatii 5 7 2 18 pe coloana 2 se afla valorile: 3, 5, 3, 2, 2, 3 cu suma 18. timp maxim de execuție: 1 secundă/test. memorie totală disponibilă 4 mb, din care 2 mb pentru stivă dimensiunea maximă a sursei: 5 kb

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Where would you click to edit the chart data?
Answers: 1
question
Computers and Technology, 23.06.2019 16:30
How to do this programming flowchart?
Answers: 3
question
Computers and Technology, 24.06.2019 00:00
The gene form of a trait is called a(n) 
Answers: 2
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
You know the right answer?
Se citește un număr natural nenul n. se umple, pe linii, partea de sub diagonală, inclusiv aceasta,...
Questions
question
Chemistry, 26.03.2021 07:10
question
Mathematics, 26.03.2021 07:10
Questions on the website: 13722367