自由的风0450
自由的风0450
全部文章
分类
归档
标签
去牛客网
登录
/
注册
自由的风0450的博客
全部文章
(共125篇)
题解 | 最大公因数与最小公倍数
#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
25
题解 | 魔法棒
#include <stdio.h> #include<math.h> int main() { int t; scanf("%d",&t); while(t--){ long long n; ...
2025-11-18
0
34
题解 | 小红的字符串修改
#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
34
题解 | 穷哈哈~
#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
29
题解 | 买橘子
#include <stdio.h> int main() { int n; scanf("%d",&n); if(n%2==1){ printf("-1"); return 0; ...
2025-11-17
1
34
题解 | 小红的扫雷游戏
#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
36
题解 | 宵暗的妖怪
#include <iostream> #include<vector> #include<algorithm> using namespace std; int main() { int n; cin>>n; vector&...
2025-11-16
0
20
题解 | 区间翻转
#include <iostream> #include<vector> #include<deque> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie...
2025-11-16
0
29
题解 | 【模板】双端队列
#include <iostream> #include<deque> using namespace std; int main() { int q; cin>>q; deque<int>de; while(q--)...
2025-11-15
2
31
题解 | 括号的匹配
#include <iostream> #include <string> #include <stack> using namespace std; int getPriority(char c) { switch (c) { case...
2025-11-15
0
36
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页