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

AcWing 737. 数组替换 更多...

#include <acwing.h>

静态 Public 成员函数

static int main (istream &cin, ostream &cout)
 

详细描述

AcWing 737. 数组替换

在文件 acwing.h862 行定义.

成员函数说明

◆ main()

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

在文件 acwing.cpp2568 行定义.

2568 {
2569 short x;
2570 for(int i = 0; i < 10; i++) {
2571 cin >> x;
2572 if(x <= 0) {
2573 x = 1;
2574 }
2575 cout << "X[" << i << "] = " << x << endl;
2576 }
2577 return 0;
2578 }

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


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