摘要:
"POJ" 题意:给定一张$n$个点$m$条边的无向图,有$Q$组询问,每组询问向图中添加一条边,并且询问当前无向图中"桥"的数量.$n include include include include include include include define ll long long using 阅读全文
摘要:
"洛咕" 题意:手机号码一定是$11$位数,且不含前导$0$.给定两个数$L$和$R$,求$[L,R]$区间内所有满足条件(号码中要出现至少3个相邻的相同数字;号码中不能同时出现8和4)的号码数量.$L$和$R$也是$11$位的手机号码.$10^{10} include include includ 阅读全文
摘要:
"洛咕" 题意:设$\text{sum}(i)$表示$i$的二进制表示中$1$的个数.给出一个正整数$N$,求$\prod_{i=1}^{N}\text{sum}(i)$,也就是 $\text{sum}(1)\sim\text{sum}(N)$的乘积.$N include include inclu 阅读全文
摘要:
"洛咕" 题意:给出两个数$l,r$,求出$[l,r]$中各位数字之和能整除原数的数的个数.$(1 include include include include include include include define ll long long using namespace std; inl 阅读全文