YBZSG
YBZSG
全部文章
分类
归档
标签
去牛客网
登录
/
注册
YBZSG的博客
全部文章
(共4篇)
题解 | 机器翻译
队列,用unordered_set查找 #include<bits/stdc++.h> using namespace std; int main(){ int m,n; cin>>m>>n; queue<int>t; ...
2026-01-23
0
15
题解 | 参议院投票
#include <queue> class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * 求出最终获胜帮派的名称 * @param s string字符...
2026-01-22
2
16
题解 | 小苯的数字排序
#include<bits/stdc++.h> #include <sys/types.h> using namespace std; int main(){ ios::sync_with_stdio(false), cin.tie(nullptr), cout.ti...
2026-01-18
0
13
题解 | 记数问题
#include <stdio.h> int main() { int n,x; scanf("%d %d",&n,&x); int cnt=0; for(int i=1;i<=n;i++){ if...
2025-11-16
0
24