自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(143)
  • 收藏
  • 关注

原创 单元最短路入门及相应例题

dijkstra算法及相应介绍

2024-07-20 20:19:15 1100 1

原创 前缀和、差分简析

简要介绍前缀和和差分,通俗易懂,欢迎查看

2024-07-09 13:54:47 990 2

原创 并查集入门

简要的介绍并查集

2024-05-05 15:01:05 844 1

原创 【数论/不等式】自编题1

一道中等难度的数论和不等式放缩题目

2025-04-05 18:08:56 747

原创 【1.2】二次方程根与系数关系(韦达定理)

简要简述韦达定理及简单应用

2025-01-23 17:30:59 959

原创 【1.1】一元二次方程的解

一元二次方程简单解法

2025-01-23 16:49:16 1089

原创 厦门市质检23题

初三厦门质检2024-2025 23题(2)

2025-01-13 20:14:47 129

原创 POJ 3321 apple tree

这棵树有N个叉,叉之间通过树枝连接。kaka将叉编号为1到N,根总是编号为1。苹果会在叉上生长,并且同一个叉上不会长出两个苹果。kaka想知道在一个子树中有多少个苹果,以研究苹果树的产量。在kaka的房子外面有一棵苹果树。每到秋天,树上会长出很多苹果。kaka非常喜欢苹果,因此他一直在精心培育这棵大苹果树。麻烦的是,有时一个新的苹果可能会在一个空叉上生长,而kaka可能会从树上摘下一个苹果作为甜点。你能帮助kaka吗?

2024-12-28 16:15:10 193

原创 【数学】P2671 [NOIP2015 普及组] 求和

一道有趣的思维题

2024-12-19 22:44:02 845

原创 ABC002D 派閥题解

入门搜索题目详解

2024-11-24 12:28:39 523

原创 CSPJ/S2024游记

一开始思路是动态规划,后来发现复杂度不是很对(得到n方或者nlogn,操作复杂。t24个二分,做完16:00,虽然思路正确但是忘记转换成整数,时间复杂度爆炸。t2一眼搜索,没想到是模拟,简单调了几下过完所有样例,此时9:00。8:30开考,t1纯送分,别人用map写,我转数字(我太菜了。t1大水题,双指针前后扫一遍,7min做完。看特殊性质想到了思路:在膜7意义下分讨。进考场前复习了一下frc配置。t3是今天最有意思一道题(?t3 dfs20分离场。t4搜索10分离场。

2024-10-26 20:58:42 233

原创 【归并排序】P1908 逆序对

归并排序好题

2024-10-25 20:42:46 596

原创 Oier的两年半

编程回忆录

2024-10-24 21:53:12 810

原创 【Python】 博饼代码2

【代码】【Python】 博饼代码2。

2024-10-24 21:41:44 160

原创 博饼代码【Python】

博饼

2024-10-24 21:38:55 320

原创 【树上差分,lca】P3258 [JLOI2014] 松鼠的新家

树上差分,lca

2024-10-24 21:19:03 818

原创 【lca,树上差分】P3128 [USACO15DEC] Max Flow P

树上差分+lca好题

2024-10-24 21:01:25 753

原创 【思维】 矩阵(matrix)题解

思维题

2024-10-19 14:44:25 1007 2

原创 【状压 dp】P3052 [USACO12MAR] Cows in a Skyscraper G

状压dp好题

2024-10-04 12:16:28 1174

原创 AI小说创作建议——写作提速

AI小说协助下

2024-10-03 17:11:25 1306

原创 【状压dp】AT_dp_o Matching 题解

dp好题

2024-10-03 15:49:33 1130

原创 AI助手——合理利用AI写作的相关方法

AI 写作的基本方法

2024-10-02 16:17:19 1073

原创 【区间dp】AT_dp_l 题解

区间dp 、博弈论

2024-10-02 15:56:07 1115

原创 【并查集】[ABC372E] K-th Largest Connected Components 题解

并查集好题

2024-09-26 22:01:33 983

原创 【模拟】 P2010 [NOIP2016 普及组] 回文日期

tj

2024-09-21 13:00:14 1164

原创 【CSP-S】 初赛基本相关知识

CSP-S

2024-09-16 16:47:34 751 3

原创 【极限、数学】 NOIP 2018 提高组初赛试题 第 7 题详解(线段长度期望)

noip有趣的数学题

2024-09-14 22:46:52 915

原创 【树形dp】P2014 [CTSC1997] 选课 题解

树形dp

2024-09-14 22:25:38 1105

原创 【区间dp、前缀和】 P1220 关路灯 题解

手把手入门教学区间dp典范性题目。

2024-08-31 22:20:37 1448

原创 【思维题】 P4715 【深基16.例1】淘汰赛是题解

水题一道

2024-08-31 21:06:28 430

原创 【区间dp、字符串处理】P4290 [HAOI2008] 玩具取名 题解

字符串处理

2024-08-30 23:02:47 1416

原创 【区间dp】P3205 [HNOI2010] 合唱队 题解

区间dp好题

2024-08-28 09:31:48 1150

原创 【区间dp】 CF607B Zuma 题解

区间dp

2024-08-27 09:33:31 802

原创 【区间dp】 P1775 石子合并(弱化版) 题解

动态规划好题

2024-08-25 17:52:02 968

原创 【区间dp】P9325 [CCC 2023 S2] Symmetric Mountains 题解

动态规划

2024-08-25 17:05:56 884

原创 【动态规划、dp】P1541 [NOIP2010 提高组] 乌龟棋 题解

简要简述dp解决noip题目

2024-08-21 10:03:45 964

原创 【动态规划、dp】P1833 樱花 题解

dp 好题

2024-08-20 10:35:29 1067

原创 【动态规划、完全背包】P1616 疯狂的采药 题解

动态规划、完全背包例题

2024-08-20 10:21:38 328

原创 【动态规划、dp】P1103书本整理题解

解决动态规划基础问题

2024-08-19 11:06:09 660

原创 【动态规划、dp】[CSP-J 2022] 上升点列 题解

动态规划好题,解决CSP-J题目

2024-08-18 12:10:55 1138

P9648 的小数据,d

Recall the definition of a trie: A trie of size � n is a rooted tree with � n vertices and ( � − 1 ) (n−1) edges, where each edge is marked with a character; Each vertex in a trie represents a string. Let � ( � ) s(x) be the string vertex � x represents; The root of the trie represents an empty string. Let vertex � u be the parent of vertex � v, and let � c be the character marked on the edge connecting vertex � u and � v, we have � ( � ) s(v) = � ( � ) + � s(u)+c. Here + + indicat

2024-07-30

https://www.luogu.com.cn/problem/solution/P8595

https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem/P8595 https://www.luogu.com.cn/problem

2024-07-09

SP27683 题解 sp

Every tourist visiting our city must visit the May 4 avenue. There are N houses, numbered from 1 to N. There are P _{i} i ​ people living at house i. The statistic institute is procedding with the survey this year. They will make many queries about the avenue's population. For each query, two numbers A and B, with A <= B, are given. You must determine the total number of people living in all houses from house A to house B, inclusive. Hope this files can help you in many ways.like

2024-07-09

c++ abc159f AC 代码

c++ abc159f AC 代码,适合经常写atcoder的人进行访问。同时,这也有助于你学习c++,你也可以拿此数据进行调试、对拍,找出你的错误。 Given are a sequence of N integers A 1 ​ , A 2 ​ , …, A N ​ and a positive integer S. For a pair of integers (L,R) such that 1≤L≤R≤N, let us define f(L,R) as follows: f(L,R) is the number of sequences of integers (x 1 ​ ,x 2 ​ ,…,x k ​ ) such that L≤x 1 ​ <x 2 ​ <⋯<x k ​ ≤R and A x 1 ​ ​ +A x 2 ​ ​ +⋯+A x k ​ ​ =S. Find the sum of f(L,R) over all pairs of integers (L,R) such that 1≤L≤R

2024-07-09

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除