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