扎男_
扎男_
全部文章
分类
题解(3)
归档
标签
去牛客网
登录
/
注册
扎男_的博客
无人问津的港口总会开满鲜花
全部文章
(共64篇)
题解 | 简单密码
#include <bits/stdc++.h> #define int long long using namespace std; signed main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);...
2025-03-20
1
20
题解 | 单词倒排活动地址: 牛客春招刷题训练营 - 编程打卡活动
#include <stdio.h>#include <stdlib.h>int main(){ char str[1010][22]; // 二维字符数组 int n=0,x; while(1){ x=scanf("%[a-z|A-...
2025-03-19
1
32
题解 | 字符串加密
#include <bits/stdc++.h> using namespace std; int main () { string str, input, keystr; cin >> str; cin >> input; //去重,新...
2025-03-19
1
38
题解 | 删除字符串中出现次数最少的字符
#include <bits/stdc++.h>// 万能头using namespace std;int main() { string s; while(cin>>s){ int mi=1e6; unordered_map<char,int&...
2025-03-15
1
38
题解 | 提取不重复的整数
#include <bits/stdtr1c++.h> // 万能头 using namespace std; int main() { string s; cin>>s;// 输入 set<char>se; // 需要用set来去重 ...
2025-03-14
1
29
题解 | 进制转换
#include <bits/stdc++.h>// 万能头 using namespace std; int main() { string s; cin>>s; reverse(s.begin(),s.end()); // 先将字符串给翻转 ...
2025-03-13
1
22
题解 | 字符串分隔
#include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; for(int i=0;i<s.size();i+=8){ string ...
2025-03-12
1
27
题解 | 字符串最后一个单词的长度
#include <iostream> using namespace std; #include<bits/stdc++.h> int main() { // int a, b; // while (cin >> a >> b) { ...
2025-03-11
1
21
题解 | 字符个数统计
#include <iostream> #include<set> using namespace std; int main() { int a, b; string s; //定义字符串 cin>>s;// 输入 set&l...
2025-03-10
1
29
题解 | 字符个数统计
#include <iostream> #include<set> using namespace std; // ^_^ int main() { string s; cin>>s; set<char>se; for...
2025-03-10
1
20
首页
上一页
1
2
3
4
5
6
7
下一页
末页