字符串分类统计的Python解法 摘要:解题思路:注意事项:参考代码:s=input()a,b,c,d=0,0,0,0for i in s: if i.isdigit(): a+=1 elif i.isalpha(…… 题解列表 2024年01月27日 1 点赞 0 评论 292 浏览 评分:0.0
冶炼金属 20行代码 摘要:解题思路:注意max和min+1就OK注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,x,y,n; cin>>n; int…… 题解列表 2024年01月27日 0 点赞 0 评论 821 浏览 评分:9.9
字符串中间和后边*号删除(C++简单易懂) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;string fun(string s){ string …… 题解列表 2024年01月27日 1 点赞 0 评论 414 浏览 评分:9.9
利用字符数组求解字符串拷贝 摘要:解题思路:用一个数组接收用户输入值找出从第几位开始往后记录输入到下一个数组中输出下一个数组即可注意事项:定义时应该定义成字符数组,用char参考代码:#include<iostream>using n…… 题解列表 2024年01月26日 0 点赞 0 评论 279 浏览 评分:0.0
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;int main(){ int n; cin >> n; …… 题解列表 2024年01月26日 0 点赞 0 评论 449 浏览 评分:0.0
1136题的题解 摘要:[题目传送门](https://www.dotcpp.com/oj/problem1136.html "题目传送门") ### **思路** 题目中说四位数前两位的数和后两位的数加起来的平方等于这…… 题解列表 2024年01月26日 0 点赞 0 评论 276 浏览 评分:9.9
用数组方法解决(C语言) 摘要:解题思路:用数组来代表所求数的每一位(本题所求数远远大于long long的规定范围),如a[0]代表个位,a[1]代表十位,a[2]代表百位,以此类推;一个数的乘算可以拆分为他每一位数的成算,这是需…… 题解列表 2024年01月26日 0 点赞 0 评论 370 浏览 评分:0.0
最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,x,y,t;printf("请输入两个整数;\n“) scanf("%d%d",&m,&n); …… 题解列表 2024年01月26日 0 点赞 0 评论 244 浏览 评分:2.0
简单实现素数和 摘要:解题思路:注意事项:注意1不是素数!参考代码:#include<iostream>using namespace std;int isprime(int x){ int a=0; …… 题解列表 2024年01月26日 0 点赞 0 评论 281 浏览 评分:9.9
回文数二:主要为进制转换问题 摘要:解题思路:本体大体没什么难度,不要上去直接按照题目给的进制直接进行对应进制的加法,那样就太复杂了,直接把题目所给的对应进制数用python自带的int()方法转为十进制,再写个通用的十进制转其他进制的…… 题解列表 2024年01月26日 0 点赞 0 评论 409 浏览 评分:9.9