codeforce
文章平均质量分 55
白速龙王的回眸
一命二运三风水
四积功德五读书
六名七相八敬神
九交贵人十养生
展开
-
codeforce:D. Friendly Spiders【转化稀疏图 + 质数表模版】
密集图化稀疏图原创 2023-01-12 13:33:21 · 188 阅读 · 2 评论 -
codeforces:D. Not a Cheap String【python不要用字符串加法 + 使用单个字符输出更快。。】
python逐个字符输出更快原创 2022-11-19 12:13:25 · 233 阅读 · 0 评论 -
codeforces:C. Train and Queries【python中dict的key神奇的优化:num -> str】
python中dict的key为大数,改为str原创 2022-11-18 16:45:10 · 319 阅读 · 0 评论 -
codeforces:C. Zero-Sum Prefixes【前缀和 + 倒序贪心】
前缀和 + 逆序贪心原创 2022-11-14 16:34:08 · 401 阅读 · 0 评论 -
codeforces:B. Diverse Substrings【特殊常数处理的优化 + list取代dict优化】
特殊常数处理的优化原创 2022-11-14 11:44:06 · 119 阅读 · 0 评论 -
codeforces:E. Rectangular Congruence【转化 + 简单构造】
简单构造。原创 2022-09-24 12:24:54 · 214 阅读 · 0 评论 -
codeforces:E. MEX and Increments【贪心 + 略加优化】
list里面的pop 是o1如果用defauldict,list(d.keys())是on 炸裂。原创 2022-09-21 16:58:22 · 306 阅读 · 0 评论 -
codeforce:workout
题目描述:1.每个矩阵元素代表消耗的脂肪2.person1从左上到右下, person2从左下到右上,两人只能相遇一次,person1只能走下或走右,person2只能走上或走右3.计算两条路径消耗的最多脂肪总和(相遇点不计算)题目分析:Construct an efficient algorithm to solve the above problem by Dynamic ProgrammingSolution:Step1: For Person1, Calculate the ma.原创 2021-11-10 15:06:25 · 247 阅读 · 0 评论