自定义函数之数字分离(so easy) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d", &num); int a = num / 1000; int b = …… 题解列表 2023年02月08日 0 点赞 0 评论 275 浏览 评分:0.0
Python解决登陆验证问题 摘要:解题思路:注意事项:运用字典来解决参考代码:dict={'dotcpp':'123456'}m=input()n=input()if m in dict and dic…… 题解列表 2023年02月09日 0 点赞 0 评论 290 浏览 评分:0.0
题解 1471: 蓝桥杯基础练习VIP-矩形面积交(c语言) 摘要:解题思路:把矩形分解成两条边去分析,然后矩形两个点x值或者y值确定第一个点是最大值,然后去比较得出下图6种情况算出边长。最后主函数求出横向和纵向两个边长就可以得到面积。注意事项:比较的时候考虑相等的情…… 题解列表 2023年02月09日 0 点赞 0 评论 325 浏览 评分:0.0
Python成绩排名 摘要:解题思路:注意事项:list.sort(key=lambda x:(x[0],-x[1])) # 先按第一个返回值排序,排序完成之后, 如果第一个返回值相等,然后再按照第二个返回值排序参考代码:n=i…… 题解列表 2023年02月09日 0 点赞 0 评论 278 浏览 评分:0.0
又是我,这个更好理解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int a[n]; double price=0.1; dou…… 题解列表 2023年02月09日 0 点赞 0 评论 404 浏览 评分:0.0
第一次打卡 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; while(n) { i=i*10+n%10; n/=10; } return i…… 题解列表 2023年02月09日 0 点赞 0 评论 234 浏览 评分:0.0
最长上升子序列问题 摘要:## 最长上升子序列问题 #### 注意事项 1.需要做两遍(从左开始,从右开始)。 2.数据范围较小,不用优化 ****** ##### 代码 ``` #include #in…… 题解列表 2023年02月09日 0 点赞 0 评论 445 浏览 评分:0.0
最长上升子序列问题3 摘要:## 最长上升子序列问题 #### 注意事项 1.与登山问题相同[https://www.dotcpp.com/oj/problem3051.html](https://www.dotcpp.…… 题解列表 2023年02月09日 0 点赞 0 评论 384 浏览 评分:0.0
最简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=1; for(i=1;i<=n;i++)…… 题解列表 2023年02月09日 0 点赞 0 评论 254 浏览 评分:0.0
有详解 简单易懂 摘要:```cpp //目标:计算每个科目的平均分以及输出总分最高的学生的信息 #include #include using namespace std; struct student{ s…… 题解列表 2023年02月09日 0 点赞 0 评论 565 浏览 评分:0.0