自由的风0450
自由的风0450
全部文章
分类
归档
标签
去牛客网
登录
/
注册
自由的风0450的博客
全部文章
(共106篇)
题解 | 铺地毯
#include <iostream> #include<stack> using namespace std; struct Carpet{ int id; int x1,y1; int x2,y2; }; int main() { int...
2025-11-19
0
16
题解 | 最大公因数与最小公倍数
#include <stdio.h> int gcd(int a,int b){ return b==0?a:gcd(b,a%b); } int main() { int a, b; scanf("%d %d",&a,&b);...
2025-11-19
0
17
题解 | 魔法棒
#include <stdio.h> #include<math.h> int main() { int t; scanf("%d",&t); while(t--){ long long n; ...
2025-11-18
0
24
题解 | 小红的字符串修改
#include <stdio.h> #include <string.h> #include <limits.h> int get(char a, char b) { int diff = a - b; if (diff < 0) { ...
2025-11-18
0
20
题解 | 穷哈哈~
#include <stdio.h> #include<stdlib.h> int main() { int n; scanf("%d",&n); char*s=(char*)malloc((n+1)*sizeof(cha...
2025-11-18
0
18
题解 | 买橘子
#include <stdio.h> int main() { int n; scanf("%d",&n); if(n%2==1){ printf("-1"); return 0; ...
2025-11-17
1
22
题解 | 小红的扫雷游戏
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); char g[4][5]; for (in...
2025-11-16
2
28
题解 | 宵暗的妖怪
#include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { int n; cin>>n; vector&...
2025-11-16
0
16
题解 | 区间翻转
#include <iostream> #include<vector> #include<deque> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie...
2025-11-16
0
20
题解 | 【模板】双端队列
#include <iostream> #include<deque> using namespace std; int main() { int q; cin>>q; deque<int>de; while(q--)...
2025-11-15
0
18
首页
上一页
2
3
4
5
6
7
8
9
10
11
下一页
末页