买图书

#include<bits/stdc++.h>//万能头 比iostream好

using namespace std;

int main()
{
    double n,m;//m打八折后有可能为小数 因此用double

    cin >> n >> m;
    
    m *= 0.8;//8折

    printf("%.2f",n - m);//保留小数格式

    return 0;
}

5 comments

  • 1

Information

ID
236
Time
1000ms
Memory
256MiB
Difficulty
6
Tags
# Submissions
177
Accepted
56
Uploaded By