编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意题目要求,需要设计函数注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h…… 题解列表 2022年09月05日 0 点赞 0 评论 415 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路: 输入字符串→测量字符串的长度→反转:只需要将第一位和最后一位调换位置即可,依次类推→中止条件:左下标数等有右下标数;注意事项:参考代码:#include <stdio.h>#include…… 题解列表 2022年09月05日 0 点赞 0 评论 409 浏览 评分:0.0
编写题解 1032: [编程入门]自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>void fcn(char *arr1, char *ar…… 题解列表 2022年09月05日 0 点赞 0 评论 304 浏览 评分:0.0
2664: 蓝桥杯2022年第十三届省赛真题-求和 摘要:# 解题思路 拿部分分思维:直接按照规矩,两两相乘再相加: ````cpp #include using namespace std; const int maxn = 200005…… 题解列表 2022年09月05日 0 点赞 0 评论 1107 浏览 评分:0.0
二级C语言-同因查找 摘要:解题思路:可以分别对2 3 7取余再想与,也可以直接对42取余注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){int i;for(i=1…… 题解列表 2022年09月05日 0 点赞 0 评论 301 浏览 评分:0.0
自定义函数之字符类型统计 摘要:解题思路: 原题:编写一函数,由实参传来一个字符串,统计此字符串中字母、数字、空格和其它字符的个数,在主函数中输入字符串以及输出上述结果。 只要结果,别输出什么提示信息。 思路…… 题解列表 2022年09月05日 0 点赞 0 评论 369 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); char a[n]; char…… 题解列表 2022年09月05日 0 点赞 0 评论 325 浏览 评分:0.0
有n个整数,使前面各数顺序向后移m个位置,最后m个数变成前面m个数。写一函数:实现以上功能,在主函数中输入n个数和输出调整后的n个数。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int b,i,c; void fun(int x,int a[],int y); scanf("%…… 题解列表 2022年09月05日 0 点赞 0 评论 313 浏览 评分:0.0
编写题解 1229: 最小公倍数 摘要:解题思路:递归,求最大公约数(greatest common divisor,gcd),再求最小公倍数(least common multiple,lcm)。注意事项:参考代码:#include<io…… 题解列表 2022年09月06日 0 点赞 0 评论 365 浏览 评分:0.0
1015——————求和训练 摘要: a,b,c = map(int,input().split()) s = 0 for i in range(1,a+1): s = s+i #…… 题解列表 2022年09月06日 0 点赞 0 评论 350 浏览 评分:0.0