C++:multiset容器简单使用方法_练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set>#include<string>using namespace std …… 题解列表 2025年03月26日 0 点赞 0 评论 186 浏览 评分:0.0
从最后一天开始 摘要:解题思路:注意事项:#include <iostream>using namespace std;int main(){ int n,a,x; &nbs…… 题解列表 2025年03月27日 0 点赞 0 评论 425 浏览 评分:0.0
1033 元音字符提取 摘要:解题思路:注意事项:题目只需要考虑小写情况参考代码:#include<stdio.h>int main(){ char a[1000]; char b[1000]; gets(a); in…… 题解列表 2025年03月27日 1 点赞 0 评论 427 浏览 评分:0.0
1034 数字分离 摘要:解题思路:定义函数,将四位数变成字符串,遍历,打印下来注意事项:参考代码:#include<stdio.h>//将一个四位数以空格分隔void aim(int num){ ch…… 题解列表 2025年03月27日 0 点赞 0 评论 381 浏览 评分:0.0
1035 字符类型统计 摘要:解题思路:#include<stdio.h>#include<ctype.h>int letters=0,digits=0,spaces=0,others=0;void cou…… 题解列表 2025年03月27日 0 点赞 0 评论 540 浏览 评分:0.0
蓝桥杯2022年第十三届决赛真题-卡牌 简单二分 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年03月27日 3 点赞 0 评论 358 浏览 评分:0.0
C++:map容器简单使用方法_练习 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>#include<map>using namespace std …… 题解列表 2025年03月28日 0 点赞 0 评论 247 浏览 评分:0.0
两种算法,一个将元素向前挪,一个直接数0的个数 摘要:解题思路:注意事项:参考代码:①找到0所在的位置,然后将后面的元素向前挪一位每挪一位,序列长度要减一,不然会无限循环(因为最后的数一直是0)a=int(input())b=list(map(int,i…… 题解列表 2025年03月28日 0 点赞 0 评论 168 浏览 评分:0.0