subject

Se dă un șir cu n elemente întregi și un număr p. cerinţa să se șteargă din șirul x elementul aflat pe poziția p. date de intrare programul va citi de la tastatură două valori n p, cu semnificația precizată, apoi n numere întregi reprezentând elementele șirului. date de ieşire programul va afișa pe ecran n-1 valori întregi, separate printr-un spațiu, reprezentând elementele șirului după ștergere. restricţii şi precizări 1 ≤ p ≤ n ≤ 1500 valoarea x și elementele șirului vor fi cuprinse între -1.000.000 și 1.000.000 elementele șirului vor avea indici între 1 și n. exemplu date de intrare 5 2 7 3 9 1 6 date de ieșire 7 9 1 6

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 07:00
You will be given two character arrays of the same size, one will contain a number of ships. ships will move around the character array based on which way they are facing and the route they are on. routes are given in the other array. the route consists of '-' and '|' for straight paths, '\' and '/' for curves, and '+' for intersections. there are ships on these routes. ships always face a direction, '^' for up, '> ' for right, 'v' for down, and '< ' for left. any time the ships hit a '\' or a '/' it will turn as you would expect a ship to turn (e.g. a '^' that moves into a '/' will turn right). at an intersection, ships will always continue straight through. all ships move at the same speed, ships take turns moving and all ships move during one 'tick'. the one in the most top left goes first, followed by those to its right, then the ones in the next row. it iterates along the rows and then down the columns. each ship moves one space on its turn moving along the route. your function needs to return the position of the first collision between two ships and the number of ticks before the crash occurred.
Answers: 2
question
Computers and Technology, 22.06.2019 08:00
Two technicians are discussing the common u-joint. technician a says its input and output speeds should be equal. technician b says that it normally has two yokes. which technician is correct?
Answers: 1
question
Computers and Technology, 22.06.2019 10:50
Using least squares fitting, you are to fit the data sets to the following models and solve for the parameters ai , where i is the index of the parameter. the input/output data for the systems are linked in the bblearn site. for each of the systems use matlab to plot the supplied data vs. the model fit on one plot. include your code in the solutions. (a) linear fit "lineardata.mat" y=a1x^3 + a2x^2 + a3x + a4 (b) plant fit "plantdata.mat g(s) = a1/(s + a2)
Answers: 1
question
Computers and Technology, 22.06.2019 17:40
Gabe wants to move text from one document to another document. he should copy the text, paste the text, and open the new document highlight the text, select the cut command, move to the new document, make sure the cursor is in the correct location, and select the paste command select the save as command, navigate to the new document, and click save highlight the text, open the new document, and press ctrl and v
Answers: 1
You know the right answer?
Se dă un șir cu n elemente întregi și un număr p. cerinţa să se șteargă din șirul x elementul aflat...
Questions
question
History, 07.12.2020 01:30
question
Mathematics, 07.12.2020 01:30
question
Mathematics, 07.12.2020 01:30
question
Arts, 07.12.2020 01:30
question
Mathematics, 07.12.2020 01:30
question
Mathematics, 07.12.2020 01:30
question
Mathematics, 07.12.2020 01:30
question
Mathematics, 07.12.2020 01:30
Questions on the website: 13722367