利用字符数组求解字符串拷贝 摘要:解题思路:用一个数组接收用户输入值找出从第几位开始往后记录输入到下一个数组中输出下一个数组即可注意事项:定义时应该定义成字符数组,用char参考代码:#include<iostream>using n…… 题解列表 2024年01月26日 0 点赞 0 评论 308 浏览 评分:0.0
字符串中间和后边*号删除(C++简单易懂) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <string>using namespace std;string fun(string s){ string …… 题解列表 2024年01月27日 1 点赞 0 评论 460 浏览 评分:9.9
冶炼金属 20行代码 摘要:解题思路:注意max和min+1就OK注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,x,y,n; cin>>n; int…… 题解列表 2024年01月27日 0 点赞 0 评论 855 浏览 评分:9.9
字符串分类统计的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 评论 339 浏览 评分:0.0
分离整数的各个数位 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; int t; scanf("%d",&a); while(a>0){ …… 题解列表 2024年01月27日 0 点赞 0 评论 324 浏览 评分:0.0
Sn的公式求和(c++解决办法) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int sn=0; …… 题解列表 2024年01月27日 0 点赞 0 评论 354 浏览 评分:9.9
[编程入门]阶乘求和的Python解法 摘要:解题思路:注意事项:参考代码:n=int(input())Sn=0a=1for i in range(1,n+1): a*=i Sn+=aprint(Sn)…… 题解列表 2024年01月27日 0 点赞 0 评论 352 浏览 评分:0.0
阶乘求和(C++解决办法) 摘要:解题思路:注意事项:第一种:数值溢出的情况,第二:循环递归的思路参考代码:#include<iostream>using namespace std;int main(){ int n; …… 题解列表 2024年01月27日 1 点赞 0 评论 436 浏览 评分:9.9
求和训练(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ int a,b,c; c…… 题解列表 2024年01月27日 0 点赞 0 评论 307 浏览 评分:0.0
水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int g,s,b; for(int i=100;i<10…… 题解列表 2024年01月27日 0 点赞 0 评论 248 浏览 评分:0.0