跳到正文

ThySecret

1055410

AFOed || Failure Throughout Existence.

在洛谷打开
资料、奖项与版本

资料

编号
1055410
抓取

奖项

2024 CSP-S
一等奖
2024 NOIP
一等奖
2023 CSP-S
二等奖
2023 NOIP
三等奖

版本

  1. v2当前
  2. v1

AFOed(2023.8.1 ~ 2024.11.30 ~ 2025.3.2)

   My Github Blog   {\ \ \ \color{Peach} {\Huge \mathcal{My \ Github \ Blog} } }\ \ \

           My CnBlogs           {\ \ \ \ \ \ \ \ \ \ \ \color{Violet} {\Huge \mathcal{My \ CnBlogs} } } \ \ \ \ \ \ \ \ \ \ \

Ephemeral Life is but a Fever Dream. \LARGE{\text{Ephemeral Life is but a Fever Dream.}}

个人练习情况

CF

CF

CF

事件祭

  • 2023.08.01 正式成为 OIer

  • 2023.09.21 绿名祭

  • 2023.10.07 咕值进前万名祭

  • 2023.10.09 橙名祭

  • 2023.10.21 CSP-S 祭

  • 2023.11.18 NOIP 祭

  • 2023.11.28 AC 500500 题祭

  • 2023.12.11 红名祭

  • 2024.01.08 咕值进前 500500 祭

  • 2024.01.20 第一次 AK Luogu Div.4

  • 2024.05.04 第一次 AK Luogu Div.3

  • 2024.06.27 AC 10001000 题祭

  • 2024.10.16 紫题 AC 100100 祭

  • 2024.10.26 CSP-S 祭

  • 2024.11.30 NOIP 寄

  • 2024.12.05 第一次 AK CF Div.3

  • 2025.2.8 第一次 AK AtCoder ABC Contest

  • 2025.3.2 AFO


Template

C++
#include <bits/stdc++.h>

using namespace std;

// #define int long long
// #define x first
// #define y second
#define File(a) freopen(a".in", "r", stdin), freopen(a".out", "w", stdout)

inline void debug() { cerr << '\n'; }
template<typename Type, typename... Other>
inline void debug(const Type& x, const Other&... y) { cerr << x << ' '; debug(y...); }
#define DEBUG(a...) cerr << "[" << #a << "] = ", debug(a);

typedef long long LL;
typedef pair<int, int> PII;

const int N = 200010;
const int INF = 0x3f3f3f3f;

template<typename Type>
inline void read(Type &res)
{
    res = 0;
    int ch = getchar(), flag = 1;
    while (!isdigit(ch)) flag = ch == '-' ? -1 : 1, ch = getchar();
    while (isdigit(ch)) res = (res << 3) + (res << 1) + (ch ^ 48), ch = getchar();
    res *= flag;
}
template<typename Type, typename... Other>
inline void read(Type &res, Other&... y) { read(res), read(y...); }



signed main()
{
    
    return 0;
}
共 1 篇
  1. 算法·理论

    【笔记/模板】二叉搜索树与平衡树

    二叉搜索树是一种用于快速查找、插入和删除操作的数据结构,其每个节点存储值、左右子节点、出现次数和子树大小。通过维护这些信息,可以实现高效的查找和操作。然而,二叉搜索树在最坏情况下可能退化为链表,导致时间复杂度变差。为此引入了平衡树,如Treap,通过随机优先级和旋转操作保持树的平衡性,使得操作时间复杂度接近O(log n)。FHQ Treap是另一种平衡树实现方式,通过分裂与合并操作实现平衡,同时支持可持久化功能,使得每次操作后都能保留树的历史状态。可持久化平衡树在处理区间反转等操作时,需要克隆节点并维护额外的标记信息。