#include<iostream>
using namespace std;
int main()
{
int m;
double n;
cin >> m >> n;
int p = m*(n / 10);
p = (p + 5) - (p + 5) % 10;
cout << p << endl;
return 0;
}
2235 机票打折
最新推荐文章于 2024-06-01 09:30:00 发布
#include<iostream>
using namespace std;
int main()
{
int m;
double n;
cin >> m >> n;
int p = m*(n / 10);
p = (p + 5) - (p + 5) % 10;
cout << p << endl;
return 0;
}