玄骨
玄骨
全部文章
分类
归档
标签
去牛客网
登录
/
注册
玄骨的博客
全部文章
(共23篇)
题解 | 组队
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int T; int n,k; cin&...
2025-11-04
1
11
题解 | 挡住洪水
#include<bits/stdc++.h> using namespace std; char a[600][600]; void bfs(int x,int y) { if(a[x][y]=='0'){ a[x][y]='*'; bfs(x-...
2025-11-03
1
11
题解 | 特殊的科学计数法
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); string s; cin>>s; in...
2025-11-01
2
13
题解 | 因子区间
#include<bits/stdc++.h> using namespace std; using ll = long long; int find(int x){//计算有多少因子,题解是直接算 int count=0; for(int i=1;i*i<=x;i...
2025-11-01
2
20
题解 | 牛牛的加法
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); string a; string b; cin>...
2025-10-31
2
11
题解 | 动态整数集最近值提取
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); set<int>s; int Q; ci...
2025-10-31
2
13
题解 | 判断一个链表是否为回文结构
/** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : val(x), next(nullptr) {} * }; */ class Solution { public: /*...
2025-10-30
2
10
题解 | 旺仔哥哥转圈圈
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 计算出旺仔哥哥最后会站在哪位小朋友旁边 * @param a int整型vector 第 i 个小朋友的数字...
2025-10-29
2
17
题解 | 逗号整合器
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 整理出一个将序列中的数字以逗号隔开从而得到的字符串 * @param a int整型vector 需要整理的...
2025-10-29
2
15
题解 | 【模板】序列操作
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(0); vector<int>a; int n; ...
2025-10-29
2
16
首页
上一页
1
2
3
下一页
末页