ÀÂÒ
Language:

Remote Training on Programming

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

663. The least and last elements of a file

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

The least and last elements of a file.

 

In a file With from N elements to find an element having the least value, and to change its places with last element. Value N to set by means of input and elements of a file are entered from the keyboard. To deduce the minimal element. N<100

 

Entrance data

File With from N elements.

 

Target data

File from N elements and the minimal element.

 

Entrance data

N=3

C [1] =-49

C [2 =54

C [3] =-19

 

Target data

min =-49

C [1] =-19

C [2 =54

C [3] =-49

 

The author: Chupchicova Yulia

 

 

 

 

 


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
637. The Givenned number a,b,c to define how much of them equal. 663. 649. The quantity of numbers is less C 676. The turned line 678. To arrange the elements of massif in the ascending order.
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.078 sec.
© Copyright VSTU, AVT, Nosov D.A.