ÀÂÒ
Language:

Remote Training on Programming

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

669. Rearrangement of lines in a matrix

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

Rearrangement of lines in a matrix.

 

The integer matrix of the order n is given. To rearrange lines in decreasing order the sums of elements. The sums of lines to deduce together with lines. Elements of a matrix are entered from the keyboard.

 

Entrance data

Integer matrix of the order n.

 

Target data

Integer matrix of the order n and the sum every line matrixes.

 

Entrance data

n=3

-6         

2           

1

 

-6       

-8       

-1

 

-7       

-7       

-9

 

Target data

-6         2          1          The Sum of a line is equal =-3

-6        -8        -1         The Sum of a line is equal =-15

-7        -9        -9         The Sum of a line is equal =-25

 

 

The author: Chupchicova Yulia.

 

 

 

 


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
651. Quantity(amount) of in a line 669. 628. Removing the word 1078. Sovershennie chisla 637. The Givenned number a,b,c to define how much of them equal.
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.063 sec.
© Copyright VSTU, AVT, Nosov D.A.