6 条题解

  • 3
    @ 2019-12-30 21:14:33

    a=int(input())
    b=float(input())
    c=float(input())
    d=b+c
    e=d/2
    f=1.08*e
    g=(0.923*b+c)/2
    if a==1:
    print('%.3f'%f)
    if a==0:
    print('%.3f'%g)
    #python 3

  • 2
    @ 2020-09-16 23:05:53

    #python3

    a=int(input())
    b=float(input())
    c=float(input())
    
    while(1):
        if a==0 or a==1:
            break
        else:
            a=int(input())
    
    while(1):
        if b>0 and b<=3:
            break
        else:
            b=float(input())
    
    while(1):
        if c>0 and c<=3:
            break
        else:
            c=float(input())
    d=0
    if a==0:
        d=(b*0.923+c)/2
    elif a==1:
        d=((b+c)/2)*1.08
    print("%.3f"%d)
        
    
  • 0
    @ 2019-04-17 20:15:49

    c++选手前来提交一份保守的代码)(。)

    #include <iostream>
    #include <iomanip>
    
    using namespace std;
    
    int main()
    {
        int s;
        double f, m;
        cin >> s >> f >> m;
        float ans;
        if(s == 1)
        {
            ans = (f + m) / 2 * 1.08;
        }
        else
        {
            ans = (f * 0.923 + m) / 2;
        }
        cout << fixed << setprecision(3) << ans;
        return 0;
    }
    
    
  • 0
    @ 2018-10-30 18:02:17
    #include <stdio.h>
    #include <cstring>
    #include<iostream>
    using namespace std;
    int n;
    double a,b;
    int main()
    {
        cin>>n>>a>>b;
        if(n==1) printf("%.3f",(a+b)/2*1.08);
        else printf("%.3f",(a*0.923+b)/2); 
    }
    
  • 0
    @ 2017-10-19 16:18:47

    a=int(input())
    b=float(input())
    c=float(input())
    if(a==1):
    x=(b+c)/2*1.08
    else:
    x=(b*0.923+c)/2
    print('%.3f'%x)

  • -5
    @ 2017-09-28 23:03:47

    a=int(input())
    b=float(input())
    c=float(input())
    0<=a<=1
    0<b<=3
    0<c<=3
    if(a==1):
    x=(b+c)/2*1.08
    print('{0:.3f}'.format(x))
    else:
    x=(b*0.923+c)/2
    print('{0:.3f}'.format(x))

  • 1

信息

难度
2
分类
(无)
标签
(无)
递交数
1388
已通过
226
通过率
16%
被复制
1
上传者