2 solutions
-
0
Guest MOD
-
0
#include <bits/stdc++.h> #include using namespace std; int n; double a,b,c; int main() { cin>>n; if(n<150) { a=n0.4463; printf("%.1f",a); } else if(n<400) { b=1500.4463+(n-150)0.4663; printf("%.1f",b); } else { c=1500.4463+250*0.4663+(n-400)*0.5663; printf("%.1f",c); } return 0; }
Information
- ID
- 1349
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- (None)
- # Submissions
- 79
- Accepted
- 29
- Uploaded By