『模拟赛』多校A层冲刺NOIP2024模拟赛11
1.模拟赛寄录-高一下二调22.高一高考集训欢乐赛3.『模拟赛』CSP提高组模拟14.『比赛记录』【LGR-193】洛谷 7 月月赛 I×ABC 3625.『模拟赛』暑假集训CSP提高模拟16.『模拟赛』暑假集训CSP提高模拟47.『模拟赛』暑假集训CSP提高模拟58.『模拟赛』暑假集训CSP提高模拟69.『模拟赛』暑假集训CSP提高模拟810.『模拟赛』暑假集训CSP提高模拟911.『模拟赛』暑假集训CSP提高模拟1012.『模拟赛』暑假集训CSP提高模拟1113.『模拟赛』暑假集训CSP提高模拟1214.『模拟赛』暑假集训CSP提高模拟1315.『模拟赛』暑假集训CSP提高模拟1416.『模拟赛』暑假集训CSP提高模拟1517.『模拟赛』暑假集训CSP提高模拟1718.『模拟赛』暑假集训CSP提高模拟1819.『模拟赛』暑假集训CSP提高模拟1920.『模拟赛』暑假集训CSP提高模拟2021.『模拟赛』暑假集训CSP提高模拟2122.『模拟赛』暑假集训CSP提高模拟2223.『模拟赛』暑假集训CSP提高模拟2324.『模拟赛』暑假集训CSP提高模拟2425.『模拟赛』暑假集训CSP提高模拟2526.『模拟赛』暑假集训CSP提高模拟2627.『模拟赛』暑假集训CSP提高模拟27 || The End28.『模拟赛』CSP-S模拟129.『模拟赛』CSP-S模拟230.『模拟赛』CSP-S加赛131.『模拟赛』CSP-S加赛232.『模拟赛』CSP-S模拟333.『比赛记录』ABC 37234.『模拟赛』CSP-S模拟435.『模拟赛』冲刺CSP联训模拟136.『模拟赛』CSP-S模拟537.『模拟赛』CSP-S模拟638.『模拟赛』CSP-S模拟739.『模拟赛』CSP-S模拟1040.『模拟赛』CSP-S模拟1141.『模拟赛』CSP-S模拟1242.『模拟赛』多校A层冲刺NOIP2024模拟赛0143.『模拟赛』冲刺CSP联训模拟244.『模拟赛』多校A层冲刺NOIP2024模拟赛0345.『模拟赛』多校A层冲刺NOIP2024模拟赛0446.『模拟赛』多校A层冲刺NOIP2024模拟赛0547.『模拟赛』多校A层冲刺NOIP2024模拟赛0648.『模拟赛』多校A层冲刺NOIP2024模拟赛0749.『模拟赛』多校A层冲刺NOIP2024模拟赛0850.『模拟赛』多校A层冲刺NOIP2024模拟赛0951.『模拟赛』信友队2024CSP-S第二轮(复赛)模拟赛52.『模拟赛』多校A层冲刺NOIP2024模拟赛10
53.『模拟赛』多校A层冲刺NOIP2024模拟赛11
54.『模拟赛』多校A层冲刺NOIP2024模拟赛1255.『模拟赛』多校A层冲刺NOIP2024模拟赛1556.『模拟赛』多校A层冲刺NOIP2024模拟赛1657.『模拟赛』多校A层冲刺NOIP2024模拟赛1758.『模拟赛』NOIP2024加赛159.『模拟赛』多校A层冲刺NOIP2024模拟赛1860.『模拟赛』NOIP2024加赛261.『模拟赛』多校A层冲刺NOIP2024模拟赛1962.『模拟赛』多校A层冲刺NOIP2024模拟赛2063.『模拟赛』NOIP2024加赛364.『模拟赛』NOIP2024加赛465.『模拟赛』多校A层冲刺NOIP2024模拟赛2166.『模拟赛』多校A层冲刺NOIP2024模拟赛22(炼石计划20)67.『模拟赛』NOIP2024加赛568.闲话 11.17(附『模拟赛』多校A层冲刺NOIP2024模拟赛23)69.『模拟赛』NOIP2024加赛670.『模拟赛』多校A层冲刺NOIP2024模拟赛24(更新 T2 详解)71.『模拟赛』多校A层冲刺NOIP2024模拟赛2572.『模拟赛』NOIP2024加赛773.『模拟赛』多校A层冲刺NOIP2024炼石计划2374.『模拟赛』【MX-S7】梦熊NOIP2024模拟赛375.『模拟赛』多校A层冲刺NOIP2024模拟赛2676.『模拟赛』NOIP2024加赛877.『模拟赛』多校A层冲刺NOIP2024模拟赛27终结篇Rank
考前不挂就是赢
A. 冒泡排序
签,简单的有点格格不入。
发现错误代码实质上是将原序列划分成了若干个连通块,并对每个连通块做一遍排序。并查集维护,
点击查看代码
#include<bits/stdc++.h>
#define fo(x, y, z) for(register int (x) = (y); (x) <= (z); (x) ++)
#define fu(x, y, z) for(register int (x) = (y); (x) >= (z); (x) --)
using namespace std;
typedef long long ll;
#define lx ll
inline lx qr()
{
lx x = 0, f = 1; char ch = getchar();
for(; ch < '0' || ch > '9'; ch = getchar()) if(ch == '-') f = -1;
for(; ch >= '0' && ch <= '9'; ch = getchar()) x = (x << 3) + (x << 1) + (ch ^ 48);
return x * f;
}
#undef lx
#define fi first
#define se second
#define pii pair<int, int>
#define P_B(x) push_back(x)
#define M_P(x, y) make_pair(x, y)
#define qr qr()
const int Ratio = 0;
const int N = 1e6 + 5;
int n, k;
int a[N], fx[N], tim[N];
vector<int> v[N];
bool yz[N];
namespace Wisadel
{
int Wfind(int x)
{
if(x == fx[x]) return x;
return fx[x] = Wfind(fx[x]);
}
short main()
{
freopen("bubble.in", "r", stdin) , freopen("bubble.out", "w", stdout);
n = qr, k = qr;
fo(i, 1, n) a[i] = qr, fx[i] = i;
fo(i, 1, n - 1)
{
if(i + k > n) break;
int _ = Wfind(i), __ = Wfind(i + k);
fx[__] = _;
}
fo(i, 1, n) v[Wfind(i)].P_B(a[i]);
fo(i, 1, n) if(v[i].size()) sort(v[i].begin(), v[i].end());
fo(i, 1, n)
{
int _ = Wfind(i);
printf("%d ", v[_][tim[_]++]);
}
puts("");
return Ratio;
}
}
int main(){return Wisadel::main();}
B. 染色
后面唯一的可做题(大概。
发现正着很难在计数的过程中去重,因此我们直接考虑最后的结果。关键的性质是:将原序列相邻项去重,可以操作得到的序列只能是它的子序列。手模还是好理解的。然后问题就很简单了,考虑设
点击查看代码
#include<bits/stdc++.h>
#define fo(x, y, z) for(register int (x) = (y); (x) <= (z); (x) ++)
#define fu(x, y, z) for(register int (x) = (y); (x) >= (z); (x) --)
using namespace std;
typedef long long ll;
#define lx ll
inline lx qr()
{
lx x = 0, f = 1; char ch = getchar();
for(; ch < '0' || ch > '9'; ch = getchar()) if(ch == '-') f = -1;
for(; ch >= '0' && ch <= '9'; ch = getchar()) x = (x << 3) + (x << 1) + (ch ^ 48);
return x * f;
}
#undef lx
#define fi first
#define se second
#define pii pair<int, int>
#define P_B(x) push_back(x)
#define M_P(x, y) make_pair(x, y)
#define qr qr()
const int Ratio = 0;
const int N = 1e5 + 1, M = 2e4 + 1;
const int mod = 2;
int n, m, ans;
int a[N];
bitset<N> f[M], zc, tot;
namespace Wisadel
{
inline int Wc(int n, int m){return (n & m) == m;}
short main()
{
freopen("color.in", "r", stdin) , freopen("color.out", "w", stdout);
int T = qr;
while(T--)
{
n = qr, m = qr, ans = 0;
fo(i, 1, n) a[i] = qr;
fo(i, 1, m) f[i].reset();
tot.reset();
fo(i, 1, n)
{
int cz = a[i];
zc = tot ^ f[cz];// 其它结尾的方案数和
f[cz] = zc << 1;
f[cz][1] = 1;
tot = zc ^ f[cz];
}
fo(i, 1, n) ans ^= Wc(n - 1, i - 1) * tot[i] % 2;
printf("%d", ans);
}
return Ratio;
}
}
int main(){return Wisadel::main();}
C. 图
出题人说是套路题,然后 std 23k。
D. 山峦
简单(?)计数题。
挺温暖的,给爆搜送了 40pts,需要一点优化,不然会挂到 30~35pts。
题解做法用到什么高维前缀和优化,不会,std 写的依托,所以学了一个不知名大神的 75pts 做法,就是搜着转移。但是竖着搜需要开
期待一手晚上能改出来这道。
末
赤石场 ++。
厕所听到的
我前 10min 拿 100pts,后 230min 拿 4pts。
这难度梯度跨度我认可了。
nt 出题人压行还能打出 700 行 23k 的 std。
没挂分,rp++。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· 单线程的Redis速度为什么快?
· 展开说说关于C#中ORM框架的用法!
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库
· SQL Server 2025 AI相关能力初探