摘要:
https://www.luogu.com.cn/problem/CF1472E 题目条件限制转化为: \[\max(a,b)>\max(c,d) \]\[\min(a,b)>\min(c,d) \]然后随便做。 阅读全文
posted @ 2025-03-21 23:52
houpingze
阅读(15)
评论(0)
推荐(0)
摘要:
Trick 1:原题中的取反操作要求两个连续的数都相同,那么我们可以将奇数位上的数取反,然后转化为交换操作。交换操作有一个特点,就是可以保证交换的两个数不相等,对应原字符串中就是两个数相等,这样很巧妙的满足了这个条件。 两个字符串可以被操作,当且仅当它们两长度相等且 \(1\) 的个数相等。 设第一 阅读全文
posted @ 2025-03-21 20:19
houpingze
阅读(46)
评论(2)
推荐(0)
摘要:
#include<bits/stdc++.h> #define int long long #define rep(i,x,y) for(int i=x;i<=y;i++) using namespace std; vector<int>G[514154]; int n,m,e; int ans[6 阅读全文
posted @ 2025-03-21 17:45
houpingze
阅读(12)
评论(0)
推荐(0)
摘要:
#include<bits/stdc++.h> #define int long long #define rep(i,x,y) for(int i=x;i<=y;i++) using namespace std; vector<int>G[514154]; int n,m,e; int ans; 阅读全文
posted @ 2025-03-21 17:40
houpingze
阅读(11)
评论(0)
推荐(0)

浙公网安备 33010602011771号