1503: 蓝桥杯算法提高VIP-前10名(简洁代码) 摘要:解题思路:用头文件algorithm中的sort函数注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;int mai…… 题解列表 2023年01月21日 0 点赞 0 评论 197 浏览 评分:0.0
1144: C语言训练-自守数问题 摘要:### 思路 1. 将一个int转换成一个char数组(倒序) 先获取int的长度len(几位数),然后给char数组分配len+1大小的空间(最后一位放'\0',自己的理解哈哈),从int的个…… 题解列表 2023年01月21日 0 点赞 0 评论 276 浏览 评分:0.0
两种方法解决 摘要:解题思路:注意事项:参考代码:解法一:用公司算(吉姆拉尔森)#include<iostream>#include<string>using namespace std;string week[] = …… 题解列表 2023年01月21日 0 点赞 0 评论 223 浏览 评分:0.0
排序(超简单的sort排序) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int arr[200000]={0};int main(){ int n; wh…… 题解列表 2023年01月20日 0 点赞 0 评论 249 浏览 评分: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 评论 163 浏览 评分:0.0
数据结构-快速排序 摘要:解题思路:注意事项:参考代码: #include<bits/stdc++.h>using namespa…… 题解列表 2023年01月20日 0 点赞 0 评论 250 浏览 评分:0.0
1477: 字符串输入输出函数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<string>using namespace std;int shu(string…… 题解列表 2023年01月20日 0 点赞 0 评论 207 浏览 评分:0.0
1466: 蓝桥杯基础练习VIP-字符串对比 摘要:解题思路:注意事项:参考代码:def judge(m,n): if len(m)!=len(n): return 1 elif m==n: return 2 …… 题解列表 2023年01月20日 0 点赞 0 评论 172 浏览 评分:9.9
1118: Tom数(python) 摘要:解题思路:注意事项:补充大佬解法,要加上except EOFError才能运行通过参考代码:while True: try: print(sum([int(i) for i in …… 题解列表 2023年01月20日 0 点赞 0 评论 436 浏览 评分:9.9
暴力解法解决绝对值排序 摘要:解题思路:定义两个一样大小的数组,一个数组用来存放输入的数据,另一个数组则用来记录是否是负数的判断,然后对于第一个数组遍历,如果小于0,则转化为它的相反数,否则不做处理,然后使用冒泡排序或者选择排序(…… 题解列表 2023年01月20日 0 点赞 0 评论 180 浏览 评分:0.0