1 十进制展开数
十进制展开数(Decimal Expansion Number)的计算公式:
DEN n^3 - n - 1 The decimal expansion of a number is its representation in base -10 (i.e., in the decimal system). In this system, each "decimal place…
树与图的遍历
可达性统计 #include<iostream>
#include<cstring>
#include<bitset>
using namespace std;
const int N 3e4 10;
int h[N], e[N], ne[N], idx; //链式向前星
int q[N], hh, tt -1; //队列
int r[N], a[N]; //r是入度,a是拓扑序…