蓝桥杯算法提高VIP-淘淘的名单(分别用两个字符数组存题目给的要比对的字符串) 摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); char a[7][100]={"WYS","C…… 题解列表 2023年11月03日 1 点赞 0 评论 517 浏览 评分:10.0
C++_dfs容易理解 摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar…… 题解列表 2023年11月05日 0 点赞 1 评论 591 浏览 评分:10.0
题解 2799: 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,d,b1=0,c1=0,d1=0,s; …… 题解列表 2023年11月06日 1 点赞 0 评论 514 浏览 评分:10.0
C语言(尺取法(同向扫描)+冒泡排序) ```c#include/*尺取法(同向扫描):i和j方向相同,都从头到尾,速度不同,如让j跑i前,j跑到100m距离滴同时i跑10m距离,j再回到i的位置,再跑,以此类推,直到i到100m距离位置为止*/intmain(){intm,M,i, 题解列表 2023年11月09日 2 点赞 0 评论 599 浏览 评分:10.0
优质题解 校门外的树 解题思路:1.把这条道路上树的总数用一个数组装起来,把这个数组的每个元素都先定义为0;2.确定地铁区域,用双循环,外循环确定有多少个铁路区域;内循环用来给铁路区域做处理,并让此区域中对应所有的数组元素加1。(我们不用管那些重叠的铁路区域,我们只需要知道非地铁区域对应的数组元素的数值一直都是0就行了, 题解列表 2023年11月10日 4 点赞 3 评论 1698 浏览 评分:10.0
【Python】如何一行解决这道题 摘要:解题思路:普通的思路注意事项:没什么注意的参考代码:print(sum(list(map(int, [i*'2' for i in range(1,int(input())+1)]))…… 题解列表 2023年11月12日 1 点赞 4 评论 1031 浏览 评分:10.0
折半查找! 摘要:#include <stdio.h>int main(){ int a[1000],b[1000]; int left,right,mid; int n,k,x,i;scanf("%d%d"…… 题解列表 2023年11月12日 0 点赞 0 评论 839 浏览 评分:10.0
成绩排序(答案错误只有50分的试试把name数组空间改为101) 参考代码:```c#include#includestructstudent{charname[101];//字符串后面要有个空intage;intscore;};voidswap(structstudent*a,structstudent*b)//交换{structstudentt;t=*a;*a= 题解列表 2023年11月15日 1 点赞 1 评论 465 浏览 评分:10.0
换一个高精度的就行 摘要:解题思路:注意事项:参考代码:#include <stdio.h>void main(){ double n,m,s; scanf("%lf%lf",&n,&m); s=n-0.8*m; printf…… 题解列表 2023年11月15日 2 点赞 0 评论 609 浏览 评分:10.0
最简单易懂的C语言代码 摘要:```c #include #include int main() { char a[100]; int n; scanf("%d",&n); …… 题解列表 2023年11月15日 0 点赞 0 评论 559 浏览 评分:10.0