АВТ
Language:

Remote Training on Programming

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

180. Ordered Fractions

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


        Задача A. Упорядоченные дроби

Вывести в порядке возрастания все несократимые дроби, заключённые между 0 и 1, знаменатели которых не превышают N.
Ограничения: 2 <= N <= 255, время 1 с.
Ввод В первой строке находится единственное число N.
ВыводВ каждой строке выводится дробь.
Примеры
Ввод 1
5
Вывод 1
1/5
1/4
1/3
2/5
1/2
3/5
2/3
3/4
4/5

View Problem Statistics Submit Author/source:
Problems from Contests / Trainings of Vologda STU / Training xx.09.2006 /
182. Multiplication Game 180. 185. Removing of Squares
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.016 sec.
© Copyright VSTU, AVT, Nosov D.A.