2664: 蓝桥杯2022年第十三届省赛真题-求和 摘要:# 解题思路 拿部分分思维:直接按照规矩,两两相乘再相加: ````cpp #include using namespace std; const int maxn = 200005…… 题解列表 2022年09月05日 0 点赞 0 评论 1110 浏览 评分: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 评论 304 浏览 评分:0.0
自定义函数之字符类型统计 摘要:解题思路: 原题:编写一函数,由实参传来一个字符串,统计此字符串中字母、数字、空格和其它字符的个数,在主函数中输入字符串以及输出上述结果。 只要结果,别输出什么提示信息。 思路…… 题解列表 2022年09月05日 0 点赞 0 评论 372 浏览 评分:0.0
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); char a[n]; char…… 题解列表 2022年09月05日 0 点赞 0 评论 332 浏览 评分: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 评论 372 浏览 评分: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 评论 353 浏览 评分:0.0
Java 统计字符 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { Scanner sc = new Scanner(System.in); S…… 题解列表 2022年09月06日 0 点赞 0 评论 272 浏览 评分:0.0
1016——————水仙花数判断 摘要:充分理解概念:**水仙花数"是指一个三位数 其各位数字立方和等于该本身** for i in range(100,1000): #三位数 if (int(str(i…… 题解列表 2022年09月06日 0 点赞 0 评论 429 浏览 评分:0.0
[编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int m,n,i; double s1=0,s2=0,s=0,t;…… 题解列表 2022年09月06日 0 点赞 0 评论 326 浏览 评分:0.0