mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 18:52:02 +00:00
P1422 小玉家的电费
R58783891
This commit is contained in:
parent
07a1a83ac8
commit
6cf0a2271b
11
Luogu/problem/P1422/P1422.cpp
Normal file
11
Luogu/problem/P1422/P1422.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int a;
|
||||
|
||||
int main() {
|
||||
cin >> a;
|
||||
cout << fixed << setprecision(1) << (a > 150 ? 0.4463 * 150 + (a > 400 ? 0.4663 * 250 + 0.5663 * (a - 400) : 0.4663 * (a - 150)) : 0.4463 * a) << endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user