1389I.cpp 209 B

12345678910111213
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int n;
  5. cin >> n;
  6. double s = n * 95;
  7. if(s >= 300) {
  8. s *= 0.85;
  9. }
  10. cout << fixed << setprecision(2) << s;
  11. return 0;
  12. }