自守数问题,简单明了,C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ long s,j; printf("0"); for(long i=1; i<=200000…… 题解列表 2024年08月18日 2 点赞 0 评论 382 浏览 评分:0.0
尝试写、找规律 摘要:解题思路:不完全归纳法找规律day1 1day2 2day3 3day4 4--------day5 6 day6 9 day7 13day8 19参考代码:#include<bits/stdc++.…… 题解列表 2024年08月18日 0 点赞 0 评论 136 浏览 评分:0.0
1204: 大小写转换 摘要:核心: name = 'Hello World' print(name.lower()) # 大写转小写 print(name.upper()) # 小写转大写 …… 题解列表 2024年08月18日 0 点赞 0 评论 612 浏览 评分:0.0
蓝桥杯算法提高VIP-删除数组中的0元素 摘要:解题思路:注意事项:参考代码:void del(int arr[], int n){ int count = 0;//统计非0元素个数 for (int i = 0; i < n; i++) { i…… 题解列表 2024年08月19日 0 点赞 0 评论 244 浏览 评分:0.0
拿捏,已知元素从小到大排列的两个数组x[]和y[],请写出一个程序算出两个数组彼此之间差的绝对值中最小的一个,这叫做数组的距离 摘要:解题思路:输入,迭代器迭代,做差,比较,赋值,输出注意事项:调试信息屏蔽掉参考代码:#include <iostream> #include <vector> #include <cmath> …… 题解列表 2024年08月19日 0 点赞 0 评论 377 浏览 评分:0.0
我们就要设置一个安全的密码,安全密码的检验,easy 摘要:解题思路:yixie c++的字符串基本操作注意事项:bool arr[4] = {true};只会将第一个元素设置为true;参考代码:#include <iostream> #include <…… 题解列表 2024年08月19日 0 点赞 0 评论 184 浏览 评分:0.0
蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:void check(int i,int flag,int* pc){ if (i > 0) { if (flag == 0 && (i % 10) % 2 == 1)…… 题解列表 2024年08月19日 0 点赞 0 评论 1099 浏览 评分:0.0
数据结构-双向循环链表(c语言纯享版) 摘要:```c #include #include typedef struct node { int date; // 节点存储的数据 struct …… 题解列表 2024年08月21日 0 点赞 0 评论 347 浏览 评分:0.0
1100: 采药(背包问题) 摘要:核心:0-1背包问题,设置二维数组dp[i][j], dp[i][j] = max(dp[i-1][j], dp[i-1][j-wi]+vi)代码:T, M = map(int, input().sp…… 题解列表 2024年08月21日 1 点赞 0 评论 388 浏览 评分:0.0
(c语言代码)暴力解法 摘要:```c #include #include #define MAX 101 int bf(char *num, char *num1) { int i = 0, j = 0; …… 题解列表 2024年08月21日 0 点赞 0 评论 335 浏览 评分:0.0