题解列表

筛选

2830: 数字统计

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long m,a,x=0;    cin>……

题解 2829: 数1的个数

摘要:解题思路:分离数位注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long n,sum=0;    ……

2829: 数1的个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long a,x=0;//要付初值    ……

题解 2829: 数1的个数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){    long long n,sum=0;    cin>>n;  ……

计算多项式的值

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    double x, a, b, c, d;    scanf("%lf %lf %lf %lf %lf"……

1267:A+B Problem

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b;    cin>>a;    cout<<a+b……

C++超简单思路

摘要:解题思路:将数字问题转换成字符串问题注意事项:注意看题目要求参考代码:#include<iostream>#include<string>#include<algorithm>#include<std……

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放入用于接收的字符……