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

洛谷 P5739 【深基7.例7】计算阶乘 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P5739 【深基7.例7】计算阶乘

在文件 luogu.h621 行定义.

成员函数说明

◆ main()

int luogu::P5739::main ( istream &  cin,
ostream &  cout 
)
static

在文件 luogu.cpp2330 行定义.

2330 {
2331 unsigned int n;
2332 cin >> n;
2333 unsigned int ans = 1;
2334 for(unsigned int i = 1; i <= n; i++) {
2335 ans *= i;
2336 }
2337 cout << ans;
2338 return 0;
2339 }

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


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