# BASIC-6 杨辉三角形

• 杨辉三角 dp[i][j]=dp[i-1][j]+dp[i-1][j-1],初始化dp[1][1]=1;
``````#include<bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int,int> P;
const int N=35;
const double PI=acos(-1);
#define line ‘\n‘
#define gt getchar()
#define mid ((L+R)>>1)
int dp[N][N];
int main()
{
for(int i=2;i<=n;++i)for(int j=1;j<=i;++j)dp[i][j]=dp[i-1][j]+dp[i-1][j-1];
for(int i=1;i<=n;++i){
for(int j=1;j<i;++j)cout<<dp[i][j]<<" ";
cout<<dp[i][i]<<line;
}
return 0;
}
``````

## [C++] Variables and Basic Types

Getting Started compile C++ program source \$ g++ -o prog grog1.cc run C++ program \$ ./prog The library, iostream, define four IO object: cin, cout, cerr, clog. std::cout << "hello world" << std::endl; The result of the output operato

## LeetCode OJ：Basic Calculator（基础计算器）

Implement a basic calculator to evaluate a simple expression string. The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integers and empty spaces . You may assume that the given expression is

## Introduction and Basic concepts

1 Network Edge The device such as computers and mobiles connect to the Internet. So they are referred as end systems(who run the application programs) sitting at the edge of the Internet. And we use host and end system interchangeably, that is host=e

## Nginx下配置Http Basic Auth保护目录

nginx basic auth指令 语法:     auth_basic string | off;默认值:     auth_basic off;配置段:     http, server, location, limit_except 默认表示不开启认证,后面如果跟上字符,这些字符会在弹窗中显示. 语法:     auth_basic_user_file file;默认值:     -配置段:     http, server, location, limit_except 1. 下载这个

## QML学习【一】Basic Types

QML入门教程(1) QML是什么? QML是一种描述性的脚本语言,文件格式以.qml结尾.语法格式非常像CSS(参考后文具体例子),但又支持javacript形式的编程控制.它结合了QtDesigner UI和QtScript的优点.QtDesigner可以设计出.ui界面文件,但是不支持和Qt原生C++代码的交互.QtScript可以和Qt原生代码进行交互,但是有一个缺点,如果要在脚本中创建一个继承于QObject的图形对象非常不方便,只能在Qt代码中创建图形对象,然后从 QtScrip

## [linux basic]--线程

/************************************************************************* > File Name: thread1.c > Author: > Mail: > Created Time: 2016年03月26日 星期六 22时37分44秒 ************************************************************************/ #include<