会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Beginner2670
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2021年7月12日
AtCoder Grand Contest 020 F: Arcs on a Circle
摘要: 题目传送门:AGC020F statement: 给定$n$条长度为$L_i$的线段(弧)和一个长度为$C$的圆,每条弧均匀随机地放置在圆上(允许实数),求每一个实点至少被一条弧覆盖的概率 \(n\leq 6\) \(1\leq L_i<C\leq 50\) solution: 首先考虑破坏成链,选
阅读全文
posted @ 2021-07-12 22:31 Beginner2670
阅读(33)
评论(0)
推荐(0)
2021年2月25日
[AGC041D] Problem Scores
摘要: Statement statement Solution 方法一: 整理一下题目的条件,\(\forall i\in[1,n)1\le A_i\le A_{i+1}\le n\)。并且满足前一半的和大于后一半的和。由于$n$的奇偶性不同做法略有不同,因此对$n$进行奇偶性讨论。 若$n=2k,k\i
阅读全文
posted @ 2021-02-25 23:09 Beginner2670
阅读(21)
评论(0)
推荐(0)
2021年2月18日
[CEOI2004] Sweets
摘要: Statement statement Solution 考虑对每堆构造其生成函数: \(F_i(x)=\sum\limits_{j=0}^{m_i}x^j\) \(xF_i(x)+1-x^{m_i+1}=F_i(x)\) \(F_i(x)=\dfrac{1-x^{m_i+1}}{1-x}\) 总共
阅读全文
posted @ 2021-02-18 11:25 Beginner2670
阅读(65)
评论(0)
推荐(0)
2020年12月2日
Codeforces Round #684 [Div1] 1439D - INOI Final Contests
该文被密码保护。
阅读全文
posted @ 2020-12-02 21:31 Beginner2670
阅读(0)
评论(0)
推荐(0)
2020年11月28日
CS Academy Contest Round 32 Task G Sum of Powers
该文被密码保护。
阅读全文
posted @ 2020-11-28 13:16 Beginner2670
阅读(0)
评论(0)
推荐(0)
Codeforces 1062F Upgrading Cities
该文被密码保护。
阅读全文
posted @ 2020-11-28 12:17 Beginner2670
阅读(0)
评论(0)
推荐(0)
[JSOI2010]连通数
摘要: 【Problem】 给定一个有向图,求每个点能到达的点数之和。\(n\le 2000\)。 【Solution】 bitset简单处理一下即可,时间复杂度$\mathcal(\frac{n^3})$ code
阅读全文
posted @ 2020-11-28 12:08 Beginner2670
阅读(64)
评论(0)
推荐(0)
2020年11月21日
[NOI Online #1 入门组]魔法
该文被密码保护。
阅读全文
posted @ 2020-11-21 15:43 Beginner2670
阅读(0)
评论(0)
推荐(0)
2020年11月20日
DP
该文被密码保护。
阅读全文
posted @ 2020-11-20 20:56 Beginner2670
阅读(0)
评论(0)
推荐(0)
2020年11月13日
Codeforces Contest 1423 H. Virus
摘要: Solution 直接用线段树分治即可,时间复杂度为$\mathcal O(q\log_2q\cdot \log_2n)$ code
阅读全文
posted @ 2020-11-13 14:08 Beginner2670
阅读(82)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告