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, 21.06.2019 23:30
Me2540 week 5 assignment what do i want to know?
Answers: 1
question
Computers and Technology, 22.06.2019 12:10
1. declare a constant named cents_per_pound and initialize with 25. 2. get the shipping weight from user input storing the weight into shipweightpounds. 3. using flat_fee_cents and cents_per_pound constants, assign shipcostcents with the cost of shipping a package weighing shipweightpounds.
Answers: 2
question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 22.06.2019 23:00
Which type of tab stop is most for weights and measurements?
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
Mathematics, 13.12.2021 17:00
question
Mathematics, 13.12.2021 17:00
question
Mathematics, 13.12.2021 17:00
question
Mathematics, 13.12.2021 17:00
Questions on the website: 13722367