自定义函数之数字分离(so easy) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d", &num); int a = num / 1000; int b = …… 题解列表 2023年02月08日 0 点赞 0 评论 480 浏览 评分:0.0
Python解决登陆验证问题 摘要:解题思路:注意事项:运用字典来解决参考代码:dict={'dotcpp':'123456'}m=input()n=input()if m in dict and dic…… 题解列表 2023年02月09日 0 点赞 0 评论 472 浏览 评分:0.0
题解 1471: 蓝桥杯基础练习VIP-矩形面积交(c语言) 解题思路:把矩形分解成两条边去分析,然后矩形两个点x值或者y值确定第一个点是最大值,然后去比较得出下图6种情况算出边长。最后主函数求出横向和纵向两个边长就可以得到面积。注意事项:比较的时候考虑相等的情况,我统一合并到大于的情况下。参考代码:#includevoidmax(double 题解列表 2023年02月09日 0 点赞 0 评论 569 浏览 评分:0.0
Python成绩排名 摘要:解题思路:注意事项:list.sort(key=lambda x:(x[0],-x[1])) # 先按第一个返回值排序,排序完成之后, 如果第一个返回值相等,然后再按照第二个返回值排序参考代码:n=i…… 题解列表 2023年02月09日 0 点赞 0 评论 504 浏览 评分: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 评论 611 浏览 评分: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 评论 444 浏览 评分:0.0
最长上升子序列问题 ##最长上升子序列问题####注意事项1.需要做两遍(从左开始,从右开始)。2.数据范围较小,不用优化******#####代码```#include#include#includeusingnamespacestd;constintN=110;intn, 题解列表 2023年02月09日 0 点赞 0 评论 678 浏览 评分:0.0
最长上升子序列问题3 ##最长上升子序列问题####注意事项1.与登山问题相同[https://www.dotcpp.com/oj/problem3051.html](https://www.dotcpp.com/oj/problem3051.html)####代码```#include#includeusingnames 题解列表 2023年02月09日 0 点赞 0 评论 613 浏览 评分: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 评论 459 浏览 评分:0.0
有详解 简单易懂 ```cpp//目标:计算每个科目的平均分以及输出总分最高的学生的信息#include#includeusingnamespacestd;structstudent{stringxuehao;stringname;intkm1,km2,km3;};intmain(){//n个学生的成绩, 题解列表 2023年02月09日 0 点赞 0 评论 772 浏览 评分:0.0