Description: Give a non-negative decimals to identify elements does not exceed M, the denominator does not exceed N most Jane Score or integral to the nearest decimal given. If the scores are not the only, the output TOO MANY. Input file format (closest.in) the first line, M, N (1 <= M, N <= 10 ^ 9) the second line, that is, a small number of R, (0 <R output file format (closest.out) only his party, If the only solution output elements/denominator (integer K written K/1), otherwise the output sample TOO MANY Input: 360 1203.1415 926536 sample output: 355/113
To Search:
File list (Check if you may need any files):
最接近的分数.c
最接近的分数.exe
最接近的分数.txt