自定义函数,使字符串反序存放,在主函数中输入并输出反序后的字符串(不包含空格)。 摘要:解题思路:字符串进行输入再进行反序输出,首先想到的是用字符数组来存放和反序输出。定义一个一维字符数组用于存放字符型数据。用gets()函数读取字符串,然后再自定义函数中进行反序存放和输出。自定义函数 …… 题解列表 2022年08月04日 0 点赞 0 评论 423 浏览 评分:0.0
应该算是比较简单的方法了 摘要:```cpp #include #include using namespace std; //输入三个字符串,按由小到大的顺序输出 int main() { string arr[3…… 题解列表 2022年08月05日 0 点赞 0 评论 357 浏览 评分:0.0
111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long n=0; for(long long i=0;i<=200000;i++) { n…… 题解列表 2022年08月05日 0 点赞 0 评论 938 浏览 评分:0.0
1111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,y,z=0,t; scanf("%d",&n); while(n--) { sca…… 题解列表 2022年08月05日 0 点赞 0 评论 277 浏览 评分:0.0
11111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[35]; scanf("%d",&n); a[0]=3,a[1]=4,a[2]=5;…… 题解列表 2022年08月05日 0 点赞 0 评论 193 浏览 评分:0.0
11111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; int a[35]; scanf("%d",&n); a[0]=3,a[1]=4,a[2]=5;…… 题解列表 2022年08月05日 0 点赞 0 评论 313 浏览 评分:0.0
11111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i; double sum,a[7],m…… 题解列表 2022年08月05日 0 点赞 0 评论 419 浏览 评分:0.0
蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c,x1,x2,o,t; scanf("%f%f%f",&a…… 题解列表 2022年08月05日 0 点赞 0 评论 338 浏览 评分:0.0
用不同思路解题 摘要:解题思路:用布尔和运算来表示结果注意事项:参考代码:#include<stdio.h> int main() { _Bool f; int n; scanf("%d"…… 题解列表 2022年08月05日 0 点赞 0 评论 490 浏览 评分:0.0
1111111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[10001]; int sum=0; sca…… 题解列表 2022年08月05日 0 点赞 0 评论 316 浏览 评分:0.0