蓝桥杯2023年第十四届省赛真题-子串简写(Java代码) 摘要:本文仅供参考理解解题思路,a、b、c、d、e、f输出皆正确,但提交错误。 a、b、c、d、e均为时间超限,其中a、b、c为95分; d是c的简化版,但为0分; e有两种思路c1和c2可以调换先后…… 题解列表 2023年12月19日 0 点赞 0 评论 657 浏览 评分:9.9
2850: 输出亲朋字符串 摘要:``` #include using namespace std; const int N=10010; int main(){ string a,b; getline(cin,a);…… 题解列表 2023年12月19日 0 点赞 0 评论 191 浏览 评分:0.0
利用指针遍历得到答案 摘要:解题思路:循环输入数据,利用指针遍历,然后寻找最大值,记录位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n;…… 题解列表 2023年12月19日 0 点赞 0 评论 162 浏览 评分:0.0
1637: 蓝桥杯算法训练VIP-斜率计算 摘要: x1,y1 = map(int,input().split()) x2,y2 = map(int,input().split()) if x1==x2: …… 题解列表 2023年12月19日 0 点赞 0 评论 151 浏览 评分:0.0
利用指针遍历大量数据提高效率 摘要:解题思路:利用指针遍历大量数据提高效率 memset 赋初值注意事项:参考代码:#include<iostream>#include<cstring>using name…… 题解列表 2023年12月19日 0 点赞 0 评论 185 浏览 评分:0.0
面向过程编程 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10] = {0};//初始化Apples的高度…… 题解列表 2023年12月19日 0 点赞 0 评论 172 浏览 评分:0.0
简单的字符串 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n=0; scanf("%d",&n); g…… 题解列表 2023年12月20日 0 点赞 0 评论 200 浏览 评分:0.0
c代码记录之数组输出 摘要:没啥要注意的,他要的是行列最小坐标,直接倒序遍历比较 可加强训练的地方 1.行列数未知,自由输入 2.用指针写 #include #include …… 题解列表 2023年12月20日 0 点赞 0 评论 341 浏览 评分:0.0
最长最短单词 摘要:解题思路:注意事项:参考代码:myList=input().split()mydict= {}newList=[]for temp in myList: newList.append(len(t…… 题解列表 2023年12月20日 0 点赞 0 评论 323 浏览 评分:2.0
1024: [编程入门]矩阵对角线求和 摘要:```python l = [] sum_zhu = 0 sum_fu=0 for i in range(3): l1 = list(map(int,input().split())…… 题解列表 2023年12月20日 0 点赞 0 评论 205 浏览 评分:0.0