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

AcWing 755. 平方矩阵 III 更多...

#include <acwing.h>

静态 Public 成员函数

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

详细描述

AcWing 755. 平方矩阵 III

在文件 acwing.h1099 行定义.

成员函数说明

◆ main()

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

在文件 acwing.cpp3497 行定义.

3497 {
3498 int n;
3499 while(true) {
3500 cin >> n;
3501 if(n == 0) {
3502 break;
3503 }
3504 for(int i = 0; i < n; i++) {
3505 for(int j = 0; j < n; j++) {
3506 cout << static_cast<int>(pow(2, i + j)) << " ";
3507 }
3508 cout << endl;
3509 }
3510 cout << endl;
3511 }
3512 return 0;
3513 }

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