AC

白泽 · 发布于 2023-12-10 · 浏览 576 回复 1

include <bits/stdc++.h>

using namespace std; int main() {

long double a,b=1.1,c=1,d=1;
cin>>a;
for(;c<=a;c++)
{
	d=d*b;
}
cout<<setprecision(2)<<fixed<<d;
return 0;

}

全部回复 共 1 条

  1. 白泽 #1 楼主 ·

    include <bits/stdc++.h>

    using namespace std; int main() {

    long double a,b=1.1,c=1,d=1;
    cin>>a;
    for(;c<=a;c++)
    {
    	d=d*b;
    }
    cout<<setprecision(2)<<fixed<<d;
    return 0;
    

    }

发表回复