Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 08:00, seaotter7140
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
image
Computers and Technology, 23.06.2019 22:30, meijorjay94p2u2zy
Apart from confidential information, what other information does nda to outline? ndas not only outline confidential information, but they also enable you to outline .
Answers: 1
image
Computers and Technology, 24.06.2019 11:00, abolton04
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
image
Computers and Technology, 24.06.2019 15:30, jerry1496
If you want to delete an entire word at a time, which key should you press along with the backspace or delete key?
Answers: 1
Do you know the correct answer?
Se citește un număr natural nenul n. se umple, pe linii, partea de sub diagonală, inclusiv aceasta,...

Questions in other subjects:

Konu
Spanish, 01.11.2019 00:31
Konu
Mathematics, 01.11.2019 00:31
Konu
History, 01.11.2019 00:31