1 solutions

  • 1
    @ 2024-11-28 19:51:15

    就说这个出题人,你家存款读一位小数啊

    #include <stdio.h>
    int main()
    {
        double m1=10000,m2=10000;
        for(int i=1;i<=5;i++)
        {
            m1*=1.035;
        }
        m2+=5.0*10000.0*0.04;
        printf("%.1lf %.0lf",m1,m2);
        return 0;
    }
    
    
    • 1

    Information

    ID
    3787
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    10
    Tags
    (None)
    # Submissions
    4
    Accepted
    2
    Uploaded By