import java.util.*;
public class test {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//re_val re_obj = new re_val();
int val, jin_a, jin_b, jin_n;
while(sc.hasNext()){
jin_a = sc.nextInt();
jin_b = sc.nextInt();
jin_n = sc.nextInt();
if(jin_n==0)
System.out.print(jin_a/jin_b);
else
System.out.print(jin_a/jin_b+".");
val = jin_a%jin_b;
for(int i=0; i<jin_n;i++){
val *= 10;
System.out.print(val/jin_b);
val %= jin_b;
}
System.out.println();
}
}
}
請幫忙看看 一直逾時..蟹蟹大大