摘要:
问题描述 "LG5367" 题解 康托展开公式: $$ans=1+(\sum_{i=1}^{n}{a_i})\times(n i)!$$ 用树状数组维护一下$\sum$里面的东西,前缀积维护后面的东西。 $\mathrm{Code}$ cpp include using namespace std; 阅读全文
posted @ 2019-09-29 19:10
览遍千秋
阅读(116)
评论(0)
推荐(0)
摘要:
问题描述 "LG2578" 题解 用 去重。 bfs即可。 $\mathrm{Code}$ cpp include using namespace std; void read(int &x){ x=0;char ch=1;int fh; while(ch!=' '&&(ch '9'||ch='0' 阅读全文
posted @ 2019-09-29 17:19
览遍千秋
阅读(123)
评论(0)
推荐(0)

浙公网安备 33010602011771号