ZZxのwarm blog


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

<置顶> 罪恶的伊始

发表于 2018-03-10 | 分类于 大ZZ的日常

大概是常规的自我介绍

阅读全文 »

CodeForces - 997C Sky Full of Stars

发表于 2018-07-08 | 分类于 题解 , CodeForces

On one of the planets of Solar system, in Atmosphere University, many students are fans of bingo game.
It is well known that one month on this planet consists of $n^2$days, so calendars, represented as square matrix
$n$ by n are extremely popular.
Weather conditions are even more unusual. Due to the unique composition of the atmosphere, when interacting with sunlight, every day sky takes one of three colors: blue, green or red.
To play the bingo, you need to observe the sky for one month — after each day, its cell is painted with the color of the sky in that day, that is, blue, green or red.
At the end of the month, students examine the calendar. If at least one row or column contains only cells of one color, that month is called lucky.
Let’s call two colorings of calendar different, if at least one cell has different colors in them. It is easy to see that there are
$3^{n * n}$different colorings. How much of them are lucky? Since this number can be quite large, print it modulo $998244353$.

阅读全文 »

四月是你の省选 - sdoi2018酱油鸡

发表于 2018-04-06 | 分类于 大ZZ的日常

游啊游啊游啊游

阅读全文 »

bzoj 4816 [Sdoi2017]数字表格.md

发表于 2018-04-01 | 分类于 题解 , bzoj
用f[i]表示菲波那切数列的第n项,求$ \prod_{i=1}^{n} \prod_{j=1}^{m} f[gcd(i,j)]$
阅读全文 »

bzoj 4817 [Sdoi2017]树点涂色

发表于 2018-04-01 | 分类于 题解 , bzoj
题目链接bzoj4817: [Sdoi2017]树点涂色 题解数据结构…..大概很容易看出是道lct 然后弃疗操作1很想lct里面的access操作那么对于操作2设F[i]=i点到lct根路径上的splay数(也就是虚边数)+1那么对于操作2的(x,y)ans(x,y)=F[x]+F[y]-(F(l ...
阅读全文 »

bzoj 3994 [SDOI2015]约数个数和

发表于 2018-03-11 | 分类于 题解 , bzoj
设d(x)为x的约数个数,给定N,M求$\sum_{i=1}^{N} \sum_{j=1}^{M}d(ij)$
阅读全文 »

数列分块1-9

发表于 2018-03-10 | 分类于 题解 , loj
这是关于分块的9道题目
阅读全文 »

博弈论与SG函数

发表于 2018-02-28 | 分类于 算法笔记
博弈论与SG函数试水
阅读全文 »

bzoj 1005 [HNOI2008]明明的烦恼

发表于 2018-02-21 | 分类于 题解 , bzoj
题目链接:bzoj 1005: [HNOI2008]明明的烦恼 题解:首先要了解prufer序列对于每个prufer序列都对应唯一的一棵树,对于该规定了度数的点也就规定了该店在prufer序列中出现的次数,那么就是求prufer序列的方案数也就是可重复序列的全排列。首先只考虑规定度数得点设其度数为d ...
阅读全文 »

bzoj 2301 HAOI2011 Problem b

发表于 2018-02-21 | 分类于 题解 , bzoj
莫比乌斯反演
阅读全文 »
123
11101001

11101001

明天,不是你想要就能有的。

21 日志
11 分类
21 标签
ZhiHu E-Mail Google Twitter
© 2018 11101001
由 Hexo 强力驱动
|
主题 — NexT.Pisces v5.1.4