编写题解 1635: 蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int func(int *a,int n); int main() { int arr[1000],n,i,sum,…… 题解列表 2023年01月21日 0 点赞 0 评论 250 浏览 评分:0.0
ASCII值赋值之输出亲朋字符串 摘要:```c #include #include int main() { char a[101], b[101]; //因为字符串长度最大为100,101是因为字符串最后一位是\0 ge…… 题解列表 2023年01月21日 0 点赞 0 评论 746 浏览 评分:9.9
编写题解 2833: 金币 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include<math.h> int main() { int a,sum = 0,m = 1; int …… 题解列表 2023年01月21日 0 点赞 0 评论 214 浏览 评分:0.0
1726: 字符串的反码 摘要:解题思路:根据题意可得,b的反码是x 即b-a==z-x x==z+a-b 即s[i]的反码为z+a-s[i]注意测试数据内有空格,代码需要可以接收空格参考代码:#include <iostream>…… 题解列表 2023年01月21日 1 点赞 0 评论 476 浏览 评分:9.9
1273: ISBN码(简介代码) 摘要:解题思路:先解释一下题目,要求检查识别码是否正确,识别码是最后一位的数字0-670-82162-4,这里最后一位的4就是识别码。4=(0×1+6×2+……+2×9)%11;注意如果最后得10,识别码为…… 题解列表 2023年01月21日 0 点赞 0 评论 396 浏览 评分:9.9
1503: 蓝桥杯算法提高VIP-前10名(简洁代码) 摘要:解题思路:用头文件algorithm中的sort函数注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int mai…… 题解列表 2023年01月21日 0 点赞 0 评论 280 浏览 评分:0.0
1144: C语言训练-自守数问题 摘要:### 思路 1. 将一个int转换成一个char数组(倒序) 先获取int的长度len(几位数),然后给char数组分配len+1大小的空间(最后一位放'\0',自己的理解哈哈),从int的个…… 题解列表 2023年01月21日 0 点赞 0 评论 386 浏览 评分:0.0
两种方法解决 摘要:解题思路:注意事项:参考代码:解法一:用公司算(吉姆拉尔森)#include<iostream>#include<string>using namespace std;string week[] = …… 题解列表 2023年01月21日 0 点赞 0 评论 355 浏览 评分:0.0
排序(超简单的sort排序) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int arr[200000]={0};int main(){ int n; wh…… 题解列表 2023年01月20日 0 点赞 0 评论 378 浏览 评分:0.0
宏定义练习之三角形面积,学的浅咯,还可以这样 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#define y1(a,b,c) S=(a+b+c)/2#define y2(a,b,c) sqrt(…… 题解列表 2023年01月20日 0 点赞 0 评论 266 浏览 评分:0.0