You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
307 B

#include <bits/stdc++.h>
using namespace std;
int main() {
int old;
cin >> old;
if (old <= 50) cout << old << endl;
if (old > 50 && old <= 150) cout << 50 + (old - 50) * 0.9 << endl;
if (old > 150) cout << 50 + (150 - 50) * 0.9 + (old - 150) * 0.8 << endl;
return 0;
}