跳到正文

myyyIisq2R

538857

Don't tell me that your love is gone

这是 2026年10月28日 存档的第 1 版,不是当前版本。查看当前版本

资料、奖项与版本

资料

编号
538857
抓取

奖项

2024 CSP-S
一等奖
2024 NOIP
二等奖
2021 CSP-J
一等奖

版本

  1. v2当前
  2. v1

compare() < 1\Huge\texttt{compare()}\color{red}\texttt{ < 1}

cin.tie 0\Huge\texttt{cin.tie }\color{red}\texttt{0}

string\texttt{string} 的 length\texttt{length} 要手动转 int\texttt{int}

不要在一个 query\texttt{query} 里调用另一个 query\texttt{query}

链的判定是每个点度不超过 22,不是编号连续!!而且顶端也要找到度为 11 的点

莫队先 add 再 sub!

用 log2 别用 log

用 pair 不如定义一个带 first 和 second 两个元素的结构体

矩阵乘法看好顺序!!

判断部分分要完全符合性质 没写正解就别判部分分了!

构树要判连通性

极值给 1e181e18,别给 LLMLLM

一定要在 LOCAL 和非 LOCAL 的环境里都编一下

C++
void ks() //切任务管理器看内存
{
	#ifdef LOCAL
	int tt = 1;
	while(tt--)tt++;
	#endif
}

if(n>m)n^=m^=n^=m;

调试

CF Better

AT Better

typora激活

图论出图

临时邮箱

画画

UDEBUG

单调队列

二分图

读入输出优化

练习颜色显示

找规律好网站

不会线段树怎么办

不会网络流怎么办

代码
console.log(_feInstance.currentData.user.introduction)  主页

fetch('/api/blog/detail/' + BlogGlobals.blogID).then(res => res.json()).then(res => console.log(res.data.Content))  博客
紫名 :color: rgb(157, 61, 207)
红名 :color: rgb(254, 76, 97)
金钩 :#ffc116
棕名 :color:var(—lfe-color—user-color-Cheater)

个人纪录

2022.8.4(七夕) 晚 AC300

2022.8.8 橙名

2022.8.29 红名

2023.9.13 复红

2023.9.18 咕值264

2023.12.18 咕值294

2023.12.18 22:03:37 AC1000AC1000

2023.12.25 咕值320 首破300

收起

C++
#pragma GCC optimize("Ofast,no-stack-protector")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <cstdio>
using namespace std;
const int N = 1e5 + 5;
int n, m, a[N];
float x; //must
static char buf[1000000],*p1 = buf,*p2 = buf;
#define mgetchar() p1==p2&&(p2=(p1=buf)+fread(buf,1,1000000,stdin),p1==p2)?EOF:*p1++

inline int read()
{
	 int x = 0;
	 char a = mgetchar();
	while (a < '0' || a > '9')
		a = mgetchar();
	while (a >= '0' && a <= '9')
		x = (x << 1) + (x << 3) + (a ^ 48), a = mgetchar();
	return x;
}
int main()
{
	n = read();
	m = read();
	for (int i = 1; i <= n; i++)
		a[i] = read();
	while (m--)
	{
		 int opt, l, r, ans = 0;
		opt = read();
		l = read();
		r = read();
		x = read();
		if (opt == 1)
			for ( int i = l; i <= r; i++)
				a[i] -= (a[i] > x) ? x : 0;
		else
		{
			for ( int i = l; i <= r; i++)
				ans += !(a[i] - x);
			printf("%d\n", ans);
		}
	}
	return 0;
}
Don’t tell me That your love is gone.

神秘链接

神秘链接2