C语言自定义函数字符链接 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char *lianjie(char *a,char *b){ strcat(a,b); retur…… 题解列表 2024年04月03日 0 点赞 0 评论 223 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char *yuanyin(char *a){ int i,j; static char b[100…… 题解列表 2024年04月03日 0 点赞 0 评论 205 浏览 评分:0.0
实行强行转换类型 摘要:解题思路:把浮点数赋值给整数实现强行转换注意事项:记得加括号参考代码:#include<stdio.h>int main(){ float a; scanf("%f", &a); int b = (i…… 题解列表 2024年04月03日 0 点赞 0 评论 522 浏览 评分:0.0
单词替换....................... 摘要:解题思路:注意事项:参考代码:# 我服了,明明题目说a,b前后是没有空格的,但是去掉.strip()直接答案错误,只能说题目歧义很大,看来以后都得去一下前后空白符了 s = list(map(str…… 题解列表 2024年04月03日 0 点赞 0 评论 292 浏览 评分:0.0
蓝桥杯2015年第六届真题-移动距离 摘要:解题思路:通过简单数学得到两个门牌号的高度与距离最左边的宽度,相减求绝对值就好参考代码:#include<bits/stdc++.h> using namespace std; int w,m,n…… 题解列表 2024年04月03日 0 点赞 0 评论 291 浏览 评分:0.0
蓝桥杯2015年第六届真题-生命之树 摘要:解题思路:树形dp,查找最大子树和注意事项:集合可以为空,也就是说如果树中节点全小于0则为空集输出0参考代码:#include<bits/stdc++.h> using namespace std;…… 题解列表 2024年04月03日 0 点赞 0 评论 308 浏览 评分:0.0
字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *tongji(char *a){ int i; static int b[4]={0}; for(i=0;*(a+i)!=&#…… 题解列表 2024年04月03日 0 点赞 0 评论 304 浏览 评分:0.0
2576: 蓝桥杯2020年第十一届省赛真题-解码 摘要: #include #include #include using namespace std; char str1[100]; char st…… 题解列表 2024年04月04日 0 点赞 0 评论 299 浏览 评分:0.0
题解 1668: printf基础练习2 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int num; // 读取输入整数 scanf("%d", &n…… 题解列表 2024年04月04日 2 点赞 0 评论 763 浏览 评分:0.0
3151: 蓝桥杯2023年第十四届省赛真题-飞机降落 摘要:#include<iostream>using namespace std;const int N = 15;//创建飞机结构体struct plane { int Ti, Di, Li;}p[N];…… 题解列表 2024年04月04日 0 点赞 0 评论 535 浏览 评分:0.0