Problem A
Dice Throwing
Input: standard input
Output: standard output
Time Limit: 1 second
The input file contains several test cases. Each test case consists two integers n (1<=n<=24) and x(0<=x<150). The meanings of n and x are given in the problem statement. Input is terminated by a case where n=0 and x=0. This case should not be processed.
For each line of input produce one line of output
giving the requested probability as a proper fraction in lowest terms in the
format shown in the sample output. All numbers appearing in output are
representable in unsigned 64-bit integers. The last line of input contains two
zeros and it should not be processed.
3 91 724 2415 7624 5624 14323 817 380 0 |
20/270111703055/78364164096789532654692658645/78973022305360281625/47383813383216168961/2
55/46656 |
Problem
setter: Poitr Rudnicki, University of Alberta, Canada