problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
acwing::acwing660类 参考

AcWing 660. 零食 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &, ostream &)
 

详细描述

AcWing 660. 零食

在文件 acwing.h359 行定义.

成员函数说明

◆ main()

int acwing::acwing660::main ( istream &  cin,
ostream &  cout 
)
static

在文件 acwing.cpp936 行定义.

936 {
937 const double snacks[] = {4, 4.5, 5, 2, 1.5};
938 int x;
939 int y;
940 cin >> x >> y;
941 cout << "Total: R$ " << setiosflags(ios::fixed) << setprecision(2) << snacks[x - 1] * y;
942 return 0;
943 }

被这些函数引用 acwing::TEST().


该类的文档由以下文件生成: