АВТ
Language:

Remote Training on Programming

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

576. B - Period of Fraction

Time Limit: 1 seconds
Memory Limit:64000KB
Points:10
View Problem Statistics Submit Problem added Administrator

B. Дробь

Заданы два натуральных числа P и Q (1≤P<Q≤100). Определите период дроби P/Q.
Входные данные:
Два числа P и Q
Выходные данные:
Период дроби P/Q
Пример входных данных:
9 14
Пример выходных данных:
428571

View Problem Statistics Submit Author/source:
Problems from Contests / VoSTU Selection Rounds / Selection Round to Ural Contest 2008 /
575. A - factorials 576. 577. C - Cards 578. D - Numeration
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.062 sec.
© Copyright VSTU, AVT, Nosov D.A.