摘要:
"坑爹入口" 我们想一下,第几个生的。那他的孩子就是排在新一波出生的第几个上的。 然后我们通过瞎试得到。10^12 include include using namespace std; long long f[61]; int find(long long val) { int l=1,r=60 阅读全文
摘要:
"传送门" 做题背景(~~啥子?这个东西还能有背景?~~)最近同学在讲lca 在树上跑倍增的时候用一个类似于st表的东西,跟着倍增数组一起维护就行了。 cpp include include include using namespace std; const int maxn=101000; st 阅读全文
摘要:
卢卡斯定理~~自我感觉感性理解比堆式子更能然人静下心来看~~ 我的大部分式子都是展开形式~~就是一堆没有的展开~~ 首先我们需要证明$C_p^i=\frac{p}{j}C_{p 1}^{i 1}\equiv0~~~(mod~p),(1 include include include using na 阅读全文
摘要:
今天SDOI二轮培训(没错我又来找虐了) D1T1是一道交互题。 然而我还是太弱。经验也不够。rand检验次数太少。~~推到~~推导也不会,遂保龄。 然而大体思路还是差不多的(剩下的题去一边) 题面 Problem A. 排列谜题(perm.c/cpp/pas) Input file: N/A Out 阅读全文