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 04:30
Dr. wisteria is a prominent chiropractor in the chicago area. she wants to provide a forum for her patients to discuss their health concerns and to seek and offer advice to other patients. which telecommunications tool is most appropriate for dr. wisteria's needs?
Answers: 3
question
Computers and Technology, 22.06.2019 16:30
Technician a says that a dry sump system uses no oil storage sump under the engine. technician b says that a wet sump system uses no oil storage sump under the engine. who is correct?
Answers: 3
question
Computers and Technology, 22.06.2019 17:30
Rachel completed typing an official document with a word processing program. she wants to make sure that her document has no typographical errors. she also wants all headings to have the same font. which features in a word processing program should she use? rachel should use the feature in a word processing program to find typographical errors. she should apply to have uniform headings.
Answers: 1
question
Computers and Technology, 24.06.2019 11:00
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
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
History, 21.11.2019 19:31
question
Mathematics, 21.11.2019 19:31
question
Mathematics, 21.11.2019 19:31
Questions on the website: 13722363