mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-08 15:58:48 +00:00
660. 零食
https://www.acwing.com/problem/content/submission/code_detail/6829169/
This commit is contained in:
parent
3f22ebe950
commit
021c141451
12
AcWing/660/660.cpp
Normal file
12
AcWing/660/660.cpp
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
#include <bits/stdc++.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
double price[] = {0.00, 4.00, 4.50, 5.00, 2.00, 1.50};
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int x, y;
|
||||||
|
cin >> x >> y;
|
||||||
|
cout << "Total: R$ " << fixed << setprecision(2) << price[x] * y << endl;
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user