会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Welcome to C.H.Yu'Blog
When you set sail for Ithaca, wish for the road to be long, full of adventures, full of knowledge.
博客园
首页
新随笔
联系
管理
订阅
2023年1月3日
解法洛谷P3406 海底高铁 python解法
摘要: 这里采用一维差分的方法,用python实现,代码如下: """差分是前缀和的逆过程,a[i]=sum(b1,b2,b3.....bi)。通过bi+1,a[i]之后的都会加一""" t = [0]*100010 class Solution(): @staticmethod def insert(l,
阅读全文
posted @ 2023-01-03 17:03 CH-Yu
阅读(10)
评论(0)
推荐(0)
公告