7 条题解
- 1
信息
- ID
- 1250
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 2
- 标签
- (无)
- 递交数
- 148
- 已通过
- 86
- 上传者
#include<bits/stdc++.h> using namespace std; int main(){ double a,c,m; cin>>a; for(int i=1;i<=10;i++){ m=a/=2.0; } cout<<2*(m2+m4+m8+m16+m32+m64+m128+m256+m512+m512)<<endl; cout<<m; }
#include<bits/stdc++.h> using namespace std; int main(){ double h,sum=0; cin>>h; sum=sum+h; for(int i=1;i<10;i++){ h=h/2.0; sum=sum+h+h; } printf("%g",sum); cout<<endl; cout<<h/2; return 0; }
#include<bits/stdc++.h>
using namespace std;
int main(){
double a,b,c,m;
cin>>a;
for(b=1;b<=10;b++){
m=a/=2.0;
}
cout<<2*(m*2+m*4+m*8+m*16+m*32+m*64+m*128+m*256+m*512+m*512)<<endl;
cout<<m;
}
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,m; cin>>a; for(b=1;b<=10;b++){ m=a/=2.0; } cout<<2* (m2+m4+m8+m16+m32+m64+m128+m256+m512+m512)<<endl; cout<<m; }
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,m; cin>>a; for(b=1;b<=10;b++){ m=a/=2.0; } cout<<2*(m2+m4+m8+m16+m32+m64+m128+m256+m512+m512)<<endl; cout<<m; }
#include<bits/stdc++.h>
using namespace std;
int main(){
double a,b,c,m;
cin>>a;
for(b=1;b<=10;b++){
m=a/=2.0;
}
cout<<2*(m*2+m*4+m*8+m*16+m*32+m*64+m*128+m*256+m*512+m*512)<<endl;
cout<<m;
}