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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 19:00, devila321
When keyboarding, if you want to be fast and accurate you should return your hands on home row with your fingers relaxed and your eyes on the text use only your index fingers to hunt and peck keep your fingers stiff and your eyes on the keys slouch in your chair and keep your fingers hovering over all of the keys
Answers: 2
image
Computers and Technology, 22.06.2019 03:30, raytaylorh010801
Write a computer program to calculate the three-phase fault current for a fault at f in figure 1.16, with the network normal, and with one line at a time removedproblems 1.1 write a computer program to calculate the three-phase fault current for a fault at f in figure 1.16, with the network normal, and with one line at a time removed 20 power system relaying from service. the positive-sequence impedance data are given in the accompanying table. use the commonly made assumption that all prefault resistance values are (1.0+j0.0) pu, and neglect all resistance values. calculate the contribution to the fault flowing through the cb b and the voltage at that bus. for each calculated case, consider the two possibilities: cb b2 closed or open. the latter is known as the stub-end fault í• figure 1.16 problem 1.1 system data for figure 1.16 from to positive sequence 0.0+j0.1 0.05j0.15 0.04 j0.2 0.01 jo. i 0.015 + j0.15 0.01 j0.19 0.01 +j0.19 0.03+j0.1 0.0+j0.08 6 6 6 from service. the positive-sequence impedance data are given in the accompanying table. use the commonly made assumption that all prefault resistance values are (1.0 + j 0.0) pu, and neglect all resistance values. calculate the contribution to the fault flowing through the cb b1, and the voltage at that bus. for each calculated case, consider the two possibilities: cb b2 closed or open. the latter is known as the “stub-end” fault.
Answers: 2
image
Computers and Technology, 22.06.2019 10:00, adam4449
Jackson is teaching the decimal number system. he wants his students to know how to expand numbers by powers of 10. which is the correct order in which digits are assigned values in the decimal number system?
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, mikey3882
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
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 in other subjects: