文章目录
- AcWing 660. 零食
- AC代码
AcWing 660. 零食
本题链接:AcWing 660. 零食
本博客给出本题截图:
AC代码
代码:
#include <iostream> using namespace std; int main() { int x, y; cin >> x >> y; double a[] = {4.00,4.50,5.00,2.00,1.50}; double sum; sum = a[x - 1] * y; printf("Total: R$ %.2lf", sum); return 0; }