evgenius1424 / unlucky-tickets-puzzle

Implementation of a unlucky ticket generator for publication on habr.com

Home Page:https://habr.com/en/articles/312920/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unlucky Tickets Generator ๐ŸŽซ

In a childhood I had a lot of public transport adventures and of course it was fun to do some sum to find out if you have a lucky ticket or not.

And in case you do not have a lucky ticket, you try to do some other mathematical operations on both sides to find a common value.

I was always interested to know how many really unlucky tickets there are and how to calculate them.

Out of curiosity this simple project was created. The post about it got 17K+ views on the popular tech resource Habrahabr. ๐Ÿš€๐Ÿ‘€

How to Run

Run the following command to print all tickets to standard output

./gradlew run

About

Implementation of a unlucky ticket generator for publication on habr.com

https://habr.com/en/articles/312920/


Languages

Language:Java 100.0%