08 2019 档案
摘要:题目 "题目链接" 互膜作为一种机房活动,在增进友谊、锻炼表达能力的同时,也能给蒟蒻以充分表达自己对神犇景仰之情的机会,可谓一举多得。 同时,它也是附中洗脑团队的日常。 每一天,n 个 OIer 都会围成一圈,为方便起见,我们不妨按顺时针为他们编号 1~n。 每个 OIer 都有一个 01 属性,这
阅读全文
摘要:Free software is software that respects your freedom and the social solidarity of your community. So it's free as in 自由软件是尊重个人自由和社会团结的软件。所以才能如自由般自由自在。
阅读全文
摘要:题目 "题目链接" Pre m^n=\sum_{i=0}^{m}{\begin{Bmatrix}n\\i\end{Bmatrix}}C_m^i i!\\ Part1 $$ ans_x=\sum_{i=0}^{n}dis(i,x)^k\\ =\sum_{i=0}^{n}\sum_{j=0}
阅读全文
摘要:题目 "题目链接" 思路 首先,看数据范围比较小,想到网络流。 对于最短路的那部分,在走到j的时候,不能经过 j的点,所以在Floyd的时候我们加一层限制$K define M 305 using namespace std; const int inf=1e9; int n,m,K,s
阅读全文
摘要:题目 There is a square grid of size n×n. Some cells are colored in black, all others are colored in white. In one operation you can select some rectan
阅读全文