ÀÂÒ
Language:

Remote Training on Programming

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

630. electrical

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

To write the calculation programme of electrical chain resistance? sonsisted of two resistances? which can be connected logically or parallel/ During introduction of resistances less or edui zero? and also exceeded 1000000? remove to the display -1.

input data

result the first resistanse, result the second resistanse, type of the connect (1 – logically, 2 - parallel)

 

output data

resulting resistance accurate to two tenth

 

example input data

5 3 2

 

example output data

1.88

 

author: Zibjuk T.V.


View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1052. a11zch 630. 629. fio 633. list of multiplication 635. massivchik
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.141 sec.
© Copyright VSTU, AVT, Nosov D.A.