import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
while (sc.hasNext()){
double t = sc.nextInt();
double h = sc.nextInt();
double n = sc.nextInt();
shuai (h, n);
}
}
public static void shuai(double x, double y){
int i;
double q, w;
for (i = 0 ; i < y ; i++){
q = x + x / Math.pow(2, i);
w = y / 2.0;
}
System.out.printf("%.2lf %.2lf\n", q, w);
}
}
Locale,String,Object æ¯ä»ä¹ææ ï¼
追çè¿æ¯åæ°
out.format(l, format, args) ï¼
System.out.printf(l, format, args)ï¼
æºç æ¹æ³æ¯ public PrintStream printf(Locale l, String format, Object ... args) { return format(l, format, args);
æ¨è½å¸®æä¿®æ¹ä¸ä¸æç代ç åï¼è°¢è°¢
追çæ¯ä¸æ¯æ¥è¿é æè¿è¡äºä¸ä¸
Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = 'l'