跳到正文

sunpengyu

747732

你家洛谷都骂我是废物

资料、奖项与版本

资料

编号
747732
抓取

版本

  1. v2当前
  2. v1

https://www.luogu.com.cn/problem/list?type=luogu&page=1&tag=523

https://catscarf.github.io/

https://blog.csdn.net/SYJAaso/article/details/136958404

https://adarkroom.doublespeakgames.com/?lang=zh_cn

https://imgloc.com/

https://studyingfather.com/archives/841

https://www.luogu.me/

https://oier.baoshuo.dev/?query=

伯努利不等式

(1+x)n≥1+nx(x>−1, n∈N+)(1 + x)^n \geq 1 + nx \quad (x > -1, \ n \in \mathbb{N}^+ )

柯西不等式

(a12+a22+⋯+an2)(b12+b22+⋯+bn2)≥(a1b1+a2b2+⋯+anbn)2(a_1^2 + a_2^2 + \cdots + a_n^2)(b_1^2 + b_2^2 + \cdots + b_n^2) \geq (a_1b_1 + a_2b_2 + \cdots + a_nb_n)^2

二项式定理

(a+b)n=∑k=0nC(n,k)an−kbk(a+b)^n = \sum_{k=0}^{n} C(n,k) a^{n-k} b^k

切比雪夫不等式

a1b1+a2b2+⋯+anbn≥a1+a2+⋯+anb1+b2+⋯+bn\frac{a_1}{b_1} + \frac{a_2}{b_2} + \cdots + \frac{a_n}{b_n} \geq \frac{a_1 + a_2 + \cdots + a_n}{b_1 + b_2 + \cdots + b_n}

贝叶斯公式

P(Bi∣A)=P(A∣Bi)P(Bi)∑j=1nP(A∣Bj)P(Bj)P(B_i \mid A) = \frac{P(A \mid B_i) P(B_i)}{\sum_{j=1}^{n} P(A \mid B_j) P(B_j)}

行列式

det⁡(A)=∑σ∈Snsgn(σ)a1,σ(1)a2,σ(2)...an,σ(n)\det(A) = \sum_{\sigma \in S_n} \text{sgn}(\sigma) a_{1,\sigma(1)} a_{2,\sigma(2)} ... a_{n,\sigma(n)}

均值不等式

a+b2≥ab≥2aba+b\frac{a + b}{2} \geq \sqrt{ab} \geq \frac{2ab}{a+b}

斯特林公式

n!≈2πn(ne)nn! \approx \sqrt{2\pi n} \left( \frac{n}{e} \right)^n

洛必达法则

lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)当 g′(x)≠0\lim_{x \to a} \frac{f(x)}{g(x)} = \lim_{x \to a} \frac{f'(x)}{g'(x)} \quad \text{当 } g'(x) \neq 0

闵可夫斯基不等式

(∑i=1n(ai+bi)p)1/p≤(∑i=1naip)1/p+(∑i=1nbip)1/p( \sum_{i=1}^n (a_i + b_i)^p )^{1/p} \leq ( \sum_{i=1}^n a_i^p )^{1/p} + ( \sum_{i=1}^n b_i^p )^{1/p}

线段树模板+练习

U537775-U537779,P3372,P3373,P1908

https://imgbed.cn/

https://superping.top/

https://oiwiki.org/

https://vjudge.net/

https://dalicode.cn/

http://bigcodeforce.cn/d/autumn2025houbei/contest

https://yuantiji.ac/zh/

https://hardle.org/

https://xiaoce.fun/guessword

http://bigcodeforce.cn/contest

https://chenzheaya.github.io/OnlineJudgeMaintainerSimulator/

我的年度总结

Don’t 机惨 me!

My name:Sun Pengyu

My school:Ningbo Foreign Language School->XS

My class:J2605->D29??

My number:747732

本人的萌新QAQ是刚学OI但是是这样即使我也声音大声喊出要用蒟蒻的IOIAKME\small\texttt{\color{#FA4129}本}\huge\texttt{\color{#FE9019}人}_{\small\texttt{\color{#FFE304}的}^{\large\texttt{\color{#FFEC01}萌\color{#FFF900}新}\small\texttt{\color{#FCFB03}Q\color{#F8FB07}A\color{#F1FB0B}Q}}}^{\large\texttt{\color{#FFB511}是}{\small\texttt{\color{#FFDC07}刚\color{#FFEF00}学}\large\texttt{\color{#FFF600}O\color{#FFFA00}I}}}\huge\texttt{\color{#E6F911}但\color{#92E82F}是}^{\large\texttt{\color{#39D54B}即}{\small\texttt{\color{#03C767}使}}}_{\normalsize\text{\color{#07C964}是\color{#00C789}这\color{#00C7A5}样}}\texttt{\color{#00CBC6}我\color{#00D0EB}也}^{\small\texttt{\color{#00D0F2}要}\normalsize\texttt{\color{#00D0F6}用}\texttt{\color{#03BEF4}蒟}_{\texttt{\color{#04AAEF}蒻}\large\texttt{\color{#078DE4}的}}}_{\scriptsize\texttt{\color{#01CDF6}声\color{#03C2F5}音\color{#04B4F2}大\color{#04A7EE}声\color{#0791E6}喊\color{#0A7BDD}出}}\mathcal{\color{#125BCD}IOI\color{#3D2AB5}AK\color{#A011AD}ME}

latex
Youth is not a time of life, - it is a state of mind;
青春不是年华,而是心境;

it is not a matter of rosy cheeks, red lips and supple knees;
青春不是桃面、丹唇、柔膝,

it is a matter of the will,a quality of the imagination, a vigor of the emotions;
而是深沉的意志,恢宏的想象,炙热的感情;

it is the freshness of the deep springs of life.
青春是生命的深泉在涌流。

Youth means a temperamental predominance of courage over timidity,
青春气贯长虹,勇锐盖过怯弱,

of the appetite for adventure over the love of ease.
进取压倒苟安。

This often exists in a man of sixty more than a boy of twenty.
如此锐气,二十后生而有之,六旬男子则更多见。

Nobody grows old merely by a number of years. 
年岁有加,并非垂老,

We grow old by deserting our ideals.
理想丢弃,方堕暮年。

Years may wrinkle the skin, 
岁月悠悠,衰微只及肌肤;

but to give up enthusiasm wrinkles the soul.
热忱抛却,颓废必致灵魂。

Worry, fear, self-distrust bows the heart and turns the spirit back to dust.
忧烦,惶恐,丧失自信,定使心灵扭曲,意气如灰。 

Whether sixty or sixteen, there is in every human being's heart the lure of wonders,
无论年届花甲,抑或二八芳龄,心中皆有生命之欢乐,奇迹之诱惑,

the unfailing child-like appetite of what's next, and the joy of the game of living.
孩童般天真久盛不衰。

In the center of your heart and my heart there is a wireless station;
人人心中皆有一台天线,

so long as it receives messages of beauty, hope, cheer, courage and power from men and from the infinite,
只要你从天上人间接受美好、希望、欢乐、勇气和力量的信号,

so long are you young.
你就青春永驻,风华常存。

When the aerials are down,
一旦天线下降,

and your spirit is covered with snows of cynicism and the ice of pessimism,
锐气便被冰雪覆盖,玩世不恭、自暴自弃油然而生,

then you've grown old, even at twenty,
即使年方二十,实已垂垂老矣;

but as long as your aerials are up, 
然则只要树起天线,

to catch the waves of optimism,
捕捉乐观信号,

there is hope you may die young at eighty.
你就有望在八十高龄告别尘寰时仍觉年轻。
共 5 篇
  1. 题解

    题解:P4977 毒瘤之神异之旅

    这道题要求计算将整数n拆分成k个不降正整数的方案中,所有数的m次方之和的模。核心思路是定义动态规划状态dp[t][s]表示拆分成t个数总和为s的方案数,转移方程为dp[t][s] = dp[t-1][s-1] + dp[t][s-t]。为解决空间限制问题,采用滚动数组优化,用pre和now数组交替保存状态。进一步通过枚举分拆中的最小值v,结合组合数学技巧将问题转化为子问题:当最小值为v时,剩余k-cnt个数需满足总和为n - v*cnt,对应方案数为dp[k-cnt][n-v*cnt]。最终答案通过遍历所有可能的v值,累加v^m乘以对应方案数得到。

  2. 题解

    题解:P17747 「RSOI-1D」游戏 / game

    该题解针对一个数值游戏问题,要求计算从给定数n出发按规则走到终点2的方案数(取模)。不同分数解法的思路如下: 10分解法:直接递归暴力搜索,按题意模拟每一步可能的路径,但效率极低。 30分解法:采用记忆化搜索,用数组缓存已计算结果避免重复计算。 50分解法:发现递推规律——非完全平方数的方案数为前一项的两倍,完全平方数需减去其平方根对应的方案数。 100分解法:针对n高达1e12的极端情况,预处理前1e6的dp值后,利用完全平方数分块处理。通过计算两个相邻完全平方数之间的区间长度,用快速幂处理2的幂次,并结合递推公式快速得到最终结果。核心在于识别完全平方数对结果的影响,将大范围计算转化为多个区间的高效处理。

    1 赞
  3. 题解

    题解:P17599 「RiOI-8」夏目 アンアン

    该题解针对一个动态维护小说集合并计算最终模仿价值期望的问题,核心思路如下: 题意 给定可重集S中的小说二元组(x,y),每次操作随机合并两篇小说,以1/2概率生成(x1,y2)或(y1,x2)。最终求只剩一篇小说时的期望价值,支持插入/删除操作并实时输出结果。 公式推导 将(x_i+y_j)^k展开为二项式求和,通过交换求和顺序转化为: 其中需维护x的幂次和、y的幂次和以及交叉项D[t]。 处理方法 预处理组合数和逆元,利用快速幂计算模运算。 对插入操作:更新x、y的幂次和及交叉项D[t],同时调整arr[t]的值。 对删除操作:逆向操作,减去对应项并处理重复计算的容斥问题。 特判n=1时直接输出剩余元素的值。 时间复杂度 O(mk + nk),其中m为操作次数,n为初始元素数量,k为指数上限(<200)。 关键点 通过维护sumx、sumy数组和D数组,动态处理每次修改操作,最终答案需乘以n和n-1的逆元以消除组合数影响。

  4. 生活·游记

    骨折记

    《骨折记》是作者记录自己从小学到高中的运动受伤经历。文中提到:小学时因在水泥地打羽毛球、滑楼梯等行为多次受伤,曾因滑楼梯导致右手小臂骨折;初中转学后,因抢饭踩空摔伤左脚踝,后因运动过度导致膝盖损伤;高中入学后,因穿着高底中底的安踏C2026运动鞋,膝盖再次受伤,最终确诊为副交叉韧带撕裂并需手术治疗。期间穿插了朋友zyl的骨折经历、班级成为"伤员标配"的趣事,以及因伤错过运动会、影响诗歌朗诵比赛等生活片段。作者对运动鞋的避雷评价和对磁共振检查的恐惧心理也贯穿全文。

    1 赞
  5. 题解

    题解:P17116 [Algo Beat 009 & MROI-R1] Avoid K Prefix

    这段内容介绍了一种通过区间反转消除前缀和为 k 的算法。主要思路是利用前缀和与后缀和,记录前缀和等于 k 的最左和最右下标。若不存在则直接输出方案;否则枚举反转区间,验证反转后是否不再存在前缀和为 k 的情况。文中提供了基于 O(n^3) 复杂度的 C++ 代码实现。

    2 赞