C++_dfs容易理解 摘要:解题思路:10个位置每个位置上找到满足的数放置注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int n;int ar…… 题解列表 2023年11月05日 0 点赞 1 评论 315 浏览 评分: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 评论 170 浏览 评分:10.0
优质题解 校门外的树 摘要:解题思路:1.把这条道路上树的总数用一个数组装起来,把这个数组的每个元素都先定义为0;2.确定地铁区域,用双循环,外循环确定有多少个铁路区域;内循环用来给铁路区域做处理,并让此区域中对应所有的数组元素…… 题解列表 2023年11月10日 2 点赞 3 评论 1228 浏览 评分:10.0
【Python】如何一行解决这道题 摘要:解题思路:普通的思路注意事项:没什么注意的参考代码:print(sum(list(map(int, [i*'2' for i in range(1,int(input())+1)]))…… 题解列表 2023年11月12日 1 点赞 4 评论 666 浏览 评分:10.0
成绩排序(答案错误只有50分的试试把name数组空间改为101) 摘要:参考代码: ```c #include #include struct student { char name[101];//字符串后面要有个空 int age; …… 题解列表 2023年11月15日 1 点赞 1 评论 211 浏览 评分: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日 1 点赞 0 评论 248 浏览 评分:10.0
2058: [STL训练]Who's in the Middle 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,a[10000],i,t,j; scanf("%d",&n); for (i=0;i<n;i++)…… 题解列表 2023年11月16日 1 点赞 0 评论 414 浏览 评分:10.0
优质题解 集合划分,利用递归关系 摘要:解题思路:首先找出递归关系,一个元素n,分为k份的集合,可以来自n-1个元素,k份集合多了一个元素,将新元素随机加到任何一份中,或,n-1个元素,k-1份,新元素单独作为一份,用数学关系式表示:f(n…… 题解列表 2023年11月18日 0 点赞 0 评论 812 浏览 评分:10.0
优质题解 利用二维字符数组和二级指针以及strcmp函数实现三个字符串的排序 摘要:`解题思路`: > 重点知识点:**二维数组**、**指针数组**、**二级指针**、**strcmp函数** 1. 声明一个二维字符数组`char string[i][j]`; 2. …… 题解列表 2023年11月22日 2 点赞 1 评论 3052 浏览 评分:10.0
数位排序 运用sort自定义排序 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int a,int b){ int a…… 题解列表 2023年11月24日 0 点赞 1 评论 320 浏览 评分:10.0