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.
16 lines
340 B
16 lines
340 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int juli, time;
|
|
float money = 6.0;
|
|
cin >> juli >> time;
|
|
if (juli > 2 && juli <= 10) money += (juli - 2) * 1.8;
|
|
if (juli > 10) money += (10 - 2) * 1.8 + (juli - 10) * 1.8 * .15;
|
|
money += time / 3;
|
|
|
|
cout << money << endl;
|
|
return 0;
|
|
}
|