2023.4.22 闲话
Dancin'
Get up on the floor
Dancin' all night long
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin'
All the time
My baby you on my mind
And I don't know why
Yeah but the feeling is fine
Can't you see
Honey you are for me
Though it weren't meant to be
Dancin' in the moonlight
Gazing at the stars so bright
Holding you until the sunrise
Sleeping until the midnight
Get up on the floor
Dancin' all night long
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin'
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
Everytime when I look in your eyes
I smile with pride happy that you're mine
Do you know, your love is true I know
You are the best thing that has happened to me
Get up on the floor
Dancin' all night long
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin'
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
Get up on the floor
Dancin' all night long
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin'
Oh
Get up on the floor
Dancin' all night long
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin' till the break of dawn
Get up on the floor
Dancin'
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
Dancin' is what to do
Dancin's when I think of you
Dancin's what clears my soul
Dancin's what makes me whole
ABC295D. Three Days Ago
竟然能 XOR Hashing 做,标记一下标记一下 .
显然就是每个数出现偶数次,可以想到异或,每个数赋随机权值后扫描线查异或和为 0 的区间即可,时间复杂度 \(\Theta(n\log n)\) .
其实 \(x\) 赋成 \(2^x\) 就成常规状压做法了,所以其实本质相同(?
ABC295F. substr = S
枚举 \(i\) 数位 DP 或者二分等,时间复杂度单次 \(\Theta(\operatorname{polylog}(r)\operatorname{polylog}(\lg r))\),看实现优不优秀 .
ABC296E Transition Game
问题其实相当于基环内向树森林上走 . Takahashi 不难构造赢恰好环长次的方案,而不可能赢的次数比环长还多因为这时候 Aoki 直接拉满 \(K\) 就撞了 .
那么比较简单直接输出环长就完了时间复杂度 \(\Theta(n)\) .
ABC295G. Minimum Reachable City
操作可以看成缩 SCC,并查集维护,每次暴力并查集上跳,每个点最多缩一次,时间复杂度不算反 Ackermann 函数为 \(\Theta(n+q)\) .
以下是博客签名,正文无关
本文来自博客园,作者:Jijidawang,转载请注明原文链接:https://www.cnblogs.com/CDOI-24374/p/17343624.html
版权声明:本作品采用「署名-非商业性使用-相同方式共享 4.0 国际」许可协议(CC BY-NC-SA 4.0)进行许可。看完如果觉得有用请点个赞吧 QwQ