1 条题解

  • 0
    @ 2024-12-24 9:14:33

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	double a,b;
    	cin>>a>>b;
    	cout<<fixed<<setprecision(1)<<a-b*0.8;
    	return 0;
    }
    

    Python :

    # coding=utf-8
    n=int(input())
    m=int(input())
    a=n-m*8/10
    print(round(a,1))
    
    • 1

    信息

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