АВТ
Language:

Remote Training on Programming

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

1035. A46

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

Даны действительные числа x,y. Если x и y отрицательны, то каждое значение заменить его модулем; если отрицательно только одно из них, то оба значения увеличить на 0.5; если оба значения неотрицательны и ни одно из них н принадлежит отрезку [0.5;2.0], то оба значения уменьшить в 10 раз; в остальных случаях x и y оставить без изменения.

Input

Дествительные числа x,y.

Output

x и y

Sample

InputOutput
Пример 1. Вход:
-4 -5
Пример 1. Выход:
4 5

View Problem Statistics Submit Author/source:
Educational Courses / New problems in testing /
1034. A42 1035. 1029. A557 1024. A58 979. A61
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.094 sec.
© Copyright VSTU, AVT, Nosov D.A.