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

洛谷 P5721 【深基4.例6】数字直角三角形 更多...

#include <luogu.h>

静态 Public 成员函数

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

详细描述

洛谷 P5721 【深基4.例6】数字直角三角形

在文件 luogu.h251 行定义.

成员函数说明

◆ main()

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

在文件 luogu.cpp694 行定义.

694 {
695 int n;
696 cin >> n;
697 int count = 1;
698 for(int i = n; i >= 1; i--) {
699 for(int j = 0; j < i; j++) {
700 cout << setw(2) << setfill('0') << right << count++;
701 }
702 cout << endl;
703 }
704 return 0;
705 }

引用了 acwing::acwing1929::right.

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


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