自由的风0450
自由的风0450
全部文章
分类
归档
标签
去牛客网
登录
/
注册
自由的风0450的博客
全部文章
(共106篇)
题解 | 小红的方神题
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; i...
2025-11-22
0
9
题解 | 小红的不动点构造
#include <iostream> using namespace std; int main() { int n,k; cin>>n>>k; if(n==k+1){ cout<<-1; r...
2025-11-22
0
9
题解 | 小红的异或构造
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; f...
2025-11-22
0
8
题解 | 构造序列
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n,m; cin>>n>&...
2025-11-22
0
13
题解 | 小红的签到题
#include <iostream> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; c...
2025-11-22
0
6
题解 | 字符串展开
#include <iostream> #include<string> #include<algorithm> #include<cctype> using namespace std; int main() { int p1, p2, p...
2025-11-22
0
11
题解 | #最大正方形#
因为所以直接枚举。 先用找出两个顶点,再计算其余顶点。 #include<vector> #include<cmath> using namespace std; int main() { int n; cin>>n; vector<...
2025-11-22
0
11
题解 | #小A弹吉他#
集合 ( ) 必须包含 ( )(每个至少出现一次)。 集合中不能包含 ( k )。 即:存在k个不同的正整数 (),它们的出现次数 ( ) 是 () 的一个排列,并且所有 ()。 为了用最小的 m 实现 mex = k ,让大的出现次数配小的数字值,以最小化序列和。 最优分配方案: 数字 i...
2025-11-22
0
9
题解 | 小苯的计算式
#include <iostream> #include<cmath> #include<string> using namespace std; int count(int n,int c){ string t=to_string(c); in...
2025-11-21
0
18
题解 | 栈和排序
#include <iostream> #include<vector> #include<stack> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie...
2025-11-19
0
18
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页