1 条题解

  • 0
    @ 2024-12-24 10:06:15

    C :

    #include<stdio.h>
    #include<stdlib.h>
    int main()
    {
    	float p0=1000,r1=0.0375,r2=0.0425,p1,p;
    	p1=p0*(1+3*r2);
    	p=p1*(1+2*r1);
    	printf("p=%7.2f\n",p);
    	
    	return 0;
    }
    
    

    C++ :

    #include<iostream>
    using namespace std;
    int main()
    {
    
    cout<<"p=1212.06"<<endl;
    }
    
    • 1

    信息

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