7 条题解

  • 2
    @ 2024-3-31 9:25:51
    #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;
    }
    
    • 1
      @ 2024-6-27 20:18:55

      #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; }

      • 0
        @ 2024-4-14 10:24:32

        #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; }

        • 0
          @ 2024-4-14 10:04:58
          #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;
          }
          
          • 0
            @ 2024-3-24 10:34:20

            #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; }

            • -1
              @ 2024-4-14 10:04:34

              #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; }

              • -2
                @ 2024-3-24 10:31:44
                #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;
                }
                
                • 1

                信息

                ID
                1250
                时间
                1000ms
                内存
                128MiB
                难度
                3
                标签
                (无)
                递交数
                158
                已通过
                91
                上传者