#include <bits/stdc++.h>
using namespace std;
int n,k;
int main(){
freeopen("Dulich.inp","r",stdin);
freeopen("Dulich.out","w",stdout);
cin>>n>>k;
if ((0<n) && (n<15)) cout<<n*k;
else if ((15<=n) && (n<=30)) cout<<fixed<<setprecision(0)<<n*k*0.9;
else if (n>30) cout<<fixed<<setprecision(0)<<n*k*0.85;
}
Đúng 1
Bình luận (0)