编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[200]; int i; int c=0,v=0,b=0,n=0; for(i=0;i<=20…… 题解列表 2021年10月22日 0 点赞 0 评论 615 浏览 评分:9.9
1126: C语言训练-字符串正反连接-题解(python) 摘要:解题思路:字符串切片的使用注意事项:参考代码:a = input()b = a[::-1]c = a+bprint(c)…… 题解列表 2021年10月22日 0 点赞 0 评论 610 浏览 评分:9.9
巧用sort解题 摘要:解题思路: 1、首先要创建两个链表,并且给数值域赋值; 2、重要的是排序,STL里有sort函数能对结构体进行排序,因为是链表,无法调用sort排序 …… 题解列表 2021年10月23日 0 点赞 0 评论 641 浏览 评分:9.9
[编程入门]猴子吃桃的问题(简单的递归)【C语言】 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int func(int n){ if(n==1) return 1; else return(func(n-1)+1)*2;}//函数…… 题解列表 2021年10月23日 0 点赞 0 评论 634 浏览 评分:9.9
蓝桥杯算法提高VIP-复数求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<malloc.h> #include<stdlib.h> #define I sizeof(struct a)…… 题解列表 2021年10月23日 0 点赞 0 评论 472 浏览 评分:9.9
蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<malloc.h>#define I sizeof(struct a)struct a{ int s; int x; …… 题解列表 2021年10月23日 0 点赞 0 评论 736 浏览 评分:9.9
新手解约瑟夫问题,代码一看就会(c++) 摘要:解题思路:通过bool数组判断该位置是否有人,结合循环条件写出代码。注意事项:先把过程想明白再写代码参考代码:#include <iostream>#include <stdio.h>using na…… 题解列表 2021年10月23日 0 点赞 0 评论 588 浏览 评分:9.9
[归并排序]数组法(c++) 摘要:解题思路:先分别将两个数组各自排序,再使用归并排序注意事项:参考代码:#include <iostream>using namespace std;int main() { int n, m, t; …… 题解列表 2021年10月23日 0 点赞 0 评论 472 浏览 评分:9.9
二进制移位练习,用移位运算符<< 、>>,与运算& 摘要:解题思路:参考第一个优质题解,不理解的还可以看第一个题解因为题目为了取二进制数从右端开始的第4至7位,所以我们只需要找一个二进制数与n的二进制数的4-7位进行&运算(都是1则为1,有0则为0)。所以我…… 题解列表 2021年10月23日 2 点赞 0 评论 655 浏览 评分:9.9
编写题解 1160: 出圈 摘要:解题思路: 寻找规律注意事项: 话不多说,代码简单易懂参考代码:#include<iostream>using namespace s…… 题解列表 2021年10月24日 0 点赞 0 评论 563 浏览 评分:9.9