和前面的全排列一样 答案对 提交为啥一直是编译错误 求大哥 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int b[100000];int a[100000];int n;int inde…… 题解列表 2023年02月02日 0 点赞 0 评论 510 浏览 评分:0.0
练习题_保留字母 摘要:解题思路:创建一个空的string和一个char类型数据,使用cin.get()读入数据存放于char中,只要是字母就+=赋值。注意事项:参考代码:#include<iostream>#include…… 题解列表 2023年02月02日 0 点赞 0 评论 275 浏览 评分:0.0
c++分解因数 摘要:解题思路:用了点递归注意事项:本应该有多解,但题目只要求一个解参考代码:#include<iostream> #include<cmath> using namespace std; void …… 题解列表 2023年02月02日 0 点赞 0 评论 298 浏览 评分:9.9
新手解题:1119水仙花数 摘要:解题思路: 首先分别取出三位数再求取它们的立方和,最后与输入数值进行对比注意事项:参考代码:#include <iostream>using namespace std;int main(){ …… 题解列表 2023年02月02日 0 点赞 0 评论 271 浏览 评分:9.9
计算(a+b)*c的值 (C++代码) 摘要:解题思路:这道题很简单,只需要先定义a,b,c并输入,在输出(a+b)*c即可;注意事项:不要忘了分号!参考代码:方法一:直接输出(a+b)*c#include<iostream> using na…… 题解列表 2023年02月02日 0 点赞 0 评论 356 浏览 评分:6.3
1085: A+B for Input-Output Practice (I) 摘要:```csharp #include using namespace std; int main() { int a,b; while(cin>>a>>b)cout…… 题解列表 2023年02月02日 0 点赞 0 评论 628 浏览 评分:9.9
密码破译题解(钻程序漏洞)(最简洁)(空间最小)(C++版) 摘要:解题思路:黑盒测试,只需猜中测试点即可。参考代码:#include<iostream>using namespace std;int main(){printf("%s","Glmre");}…… 题解列表 2023年02月02日 0 点赞 0 评论 378 浏览 评分:3.6
1251: 统计字母个数 摘要:```cpp #include using namespace std; int a[123]; int main() { string s; int l=0,sum=0…… 题解列表 2023年02月02日 0 点赞 0 评论 514 浏览 评分:9.9
1250: 素数回文 摘要:```cpp #include using namespace std; bool a[100001000]; int main() { long long n1,n2,t=0,t…… 题解列表 2023年02月02日 0 点赞 0 评论 350 浏览 评分:9.9
1249: 简单编码 摘要:```cpp #include using namespace std; int main() { string str; while(getline(cin,str)) …… 题解列表 2023年02月02日 0 点赞 0 评论 474 浏览 评分:9.9