1267: A+B Problem 摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)…… 题解列表 2024年01月19日 0 点赞 0 评论 433 浏览 评分:9.9
使用string提取字符 摘要:解题思路:1、先定义两个字符串,一个用于接收用户输入的数据,一个用于接收aeiou2、求出用户输入字符串的长度3、利用求出的长度遍历用户输入的字符串,并找到aeiou4、把aeiou放入用于接收的字符…… 题解列表 2024年01月19日 0 点赞 0 评论 252 浏览 评分:0.0
三行代码解决字符串连接问题 摘要:解题思路:使用string,cin连续输入两个字符串使用cout连续输出即可注意事项:无参考代码:#include<iostream>using namespace std;void dfs(){ …… 题解列表 2024年01月19日 0 点赞 0 评论 204 浏览 评分:0.0
四种方法求解字符串反转 摘要:解题思路:关于sizeof(),strlen(),length(),size()char a[100]:定义一个字符数组(使用sizeof和strlen时需要用char定义字符数组)cin>>a;用于…… 题解列表 2024年01月19日 0 点赞 0 评论 188 浏览 评分:0.0
题解 2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double x,sum=0; long lo…… 题解列表 2024年01月19日 0 点赞 0 评论 141 浏览 评分:0.0
题解 2830: 数字统计 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long l,r,sum=0; cin…… 题解列表 2024年01月19日 0 点赞 0 评论 157 浏览 评分:9.9
题解 2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double x,n,sum=1,a; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 202 浏览 评分:9.9
2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum = 0; ci…… 题解列表 2024年01月19日 0 点赞 0 评论 134 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:die!注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; …… 题解列表 2024年01月19日 0 点赞 0 评论 128 浏览 评分:9.9
题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,sum=0; cin>…… 题解列表 2024年01月19日 0 点赞 0 评论 124 浏览 评分:0.0