ÀÂÒ
Language:

Remote Training on Programming

Problems On-line status Contests FAQ
For authors:
Register  ||  Login
 
Hello, Guest! Login or register.

671. Form one array from two others

Time Limit: 1 seconds
Memory Limit:1000KB
Points:2
View Problem Statistics Submit Problem added Undefined

It Is Given two arrays À and  on N integer element. Form and bring on screen array L from 2*N element: L= ( A (1)+B (1), A (1)-B (1), A (2)+B (2), A (2)-B (2), , A ( N )+B ( N ), A ( N )-B ( N ) ). Importances À and N are entered with keyboards, N does not exceed 100. The Array B are entered with keyboards. If it is entered N more 100, or N smaller or equal zero, that performing the program must stop.

Input given: amount array element, array

Output given: array

Example input data

4

0

0

0

0

4

0

6

3

Example output data

4 -4 0 0 6 -6 3 -3

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
652. Find the most numeral in given number N. 671. 645. Givenned number a,b,c to define how much of them equal 664. Incoincident symbol 668. Number input
We can all benefit by doing occasional "toy" programs, when artificial restrictions are set up, so that we are forced to push our abilities to the limit. The art of tackling miniproblems with all our energy will sharpen our talents for the real problems. Donald E. Knuth.
time generating 0.125 sec.
© Copyright VSTU, AVT, Nosov D.A.