Woshiluo's Notebook

「Jump up HIGH!!」

标签: cf

Codeforces Round 1934 解题报告

2024年3月3日2024年3月3日 by woshiluo

A Too Min Too Max

排序,选前 2 后 2。

B Yet Another Coin Problem

整出 LCM。

容易发现要么是对 LCM 的余数,要么就是对 LCM 的余数 + LCM。

Continue reading “Codeforces Round 1934 解题报告”
class 算法竞赛
local_offer cf
Codeforces Round 1934 解题报告无评论

Codeforces Round 1929 解题报告

2024年3月2日2024年3月2日 by woshiluo

A Sasha and the Beautiful Array

直接最大值减最小值即可。

B Sasha and the Drawing

容易发现,首先填第一行和最后一行是较优的,只有四个端点处有可能重复,别的点每加一个都会覆盖两条对角线。

对四个端点特判即可。

Continue reading “Codeforces Round 1929 解题报告”
class 算法竞赛
local_offer cf
Codeforces Round 1929 解题报告无评论

Codeforces Round 1923 解题报告

2024年3月2日2024年3月2日 by woshiluo

A Moving Chips

从最后往前,每一格都得点一次。

B Monsters Attack!

这坐标正负显然没关系。

绝对值,排序,前缀和,判断每个点是否可行即可。

Continue reading “Codeforces Round 1923 解题报告”
class 算法竞赛
local_offer cf
Codeforces Round 1923 解题报告无评论

Codeforces Round 1937 解题报告

2024年3月2日2024年3月2日 by woshiluo

A Shuffle Party

容易观察到在 2⋅x2 \cdot x2⋅x 的时候一就会被交换出去。

输出最小的 2 的次幂即可。

B Binary Path

开始和结尾是固定的。

扫描两层中间的部分,只能走上面就归 0,都能走 +1, 只能走下面就结束。

Continue reading “Codeforces Round 1937 解题报告”
class 算法竞赛
local_offer cf
Codeforces Round 1937 解题报告无评论
Search
Hitokoto

这个世纪疯狂,没人性,腐败;你却一直清醒,温柔,一尘不染。

「弗朗索瓦丝·萨冈」
特别感谢

CDN

又拍云 Logo
版权声明
知识共享许可协议
除非另有说明,本网站上的内容均采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。

请您在转载时注明来源及博客链接。

Friends Links
  • 以下内容没有任何顺序
  • JBNRZ
  • l0tus's blog
  • 秋枫微凉
  • FH云彩博客
  • StudyingFather’s Blog
  • 追梦人博客
  • 15owzLy1’s Blog
  • spinmry’s Lab
  • M_sea 的博客
  • BeyondLimits’s Blog
  • GoldenPotato137的小屋
  • 老 K 的博客
  • Lucky_Glass’s Blog
  • Shuyu Lu
  • 千千
  • Opethrax
  • 梦安咖啡馆meow~
  • 没有回路的路
  • Recycle Bin
  • CXY07 的小屋
  • cjh-hhz
  • juju527
  • black-swallow
  • Tiger1218’s Blog
  • Yuuko10032’s Blog
  • Lyccrius's Blog
  • Morgen-Kornblume's Blog
  • mem 的小站
  • Snowflake_Pink
  • Mantle's Potato Bakery
  • MisakaE
  • Zena Xu
  • Kiracoon
  • 无法访问的友链
Proudly powered by WordPress | Theme: SimpleMD by woshiluo based on Underscores.me