This is a write-up for the web? and pwning task SW Expert Academy from SSTF 2021
In this problem we are given a website that presents an algorithm problem. In short, its about calculating a chance of winning in a dice game, where two 6-faced dices are given. For example, when a dice with faces 3, 4, 3, 4, 3, 4 and the other dice with 1, 1, 1, 1, 8, 9 are given, the program should print out 2/3 which is the chance of the first dice winning.
Actually, this is not really a coding challenge, as there are only three fixed test cases which are given as examples. The three test cases are given below.