12133

高一六 · 发布于 2024-01-07 · 浏览 799 回复 0

include<bits/stdc++.h>

using namespace std;

int main(){

double a,b=100,c=0;

scanf("%lf",&a);
for(int i=1;i<=a;i++){
    c=c+2*b;
	b=b/2;
	
}
printf("%lf %lf",c-100,b);
return 0;}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复