Ako netko moze neka rjesi ovo, ili bar da ideju.Probao sam al ne ide.
Problem 12: Long Division [Traditional, 2005]
The cows know their math ability is weak. Help them learn to divide
by showing them the proper answer for several long division problems.
Read in a pair of positive integers (each of which fits in 27 bits) and
show their quotient to exactly 35 decimal places (even if many of those
decimal places are '0'). If the answer is less than one, output
exactly one leading 0 before the decimal point. Do not round the final digit.
PROBLEM NAME: ldiv
INPUT FORMAT:
* Line 1: A single integer: the numerator
* Line 2: A single integer: the denominator
SAMPLE INPUT (file ldiv.in):
489384
583
INPUT DETAILS:
Calculate 489384/583
OUTPUT FORMAT:
* Line 1: The quotient with exactly 35 decimal places.
SAMPLE OUTPUT (file ldiv.out):
839.42367066895368782161234991423670668
OUTPUT DETAILS:
Even though the next digit after ...0668 is 9, no rounding is performed




USACO zadatak (help)
