题解 1471: 蓝桥杯基础练习VIP-矩形面积交(c语言) 摘要:解题思路:把矩形分解成两条边去分析,然后矩形两个点x值或者y值确定第一个点是最大值,然后去比较得出下图6种情况算出边长。最后主函数求出横向和纵向两个边长就可以得到面积。注意事项:比较的时候考虑相等的情…… 题解列表 2023年02月09日 0 点赞 0 评论 251 浏览 评分:0.0
Python解决登陆验证问题 摘要:解题思路:注意事项:运用字典来解决参考代码:dict={'dotcpp':'123456'}m=input()n=input()if m in dict and dic…… 题解列表 2023年02月09日 0 点赞 0 评论 217 浏览 评分:0.0
编写题解 2858: 整理药名 摘要:参考代码:#include<bits/stdc++.h>using namespace std;char s[1001];int main(){ int l,n; cin>>n; f…… 题解列表 2023年02月09日 0 点赞 6 评论 251 浏览 评分:6.0
1000: [竞赛入门]简单的a+b 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b)cout<<(a+b)<<e…… 题解列表 2023年02月09日 0 点赞 0 评论 309 浏览 评分:9.9
自定义函数之数字分离(so easy) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int num; scanf("%d", &num); int a = num / 1000; int b = …… 题解列表 2023年02月08日 0 点赞 0 评论 202 浏览 评分:0.0
2810: 鸡尾酒疗法 摘要:解题思路:注意事项:参考代码:l = [] n = int(input()) a,b = map(int,input().split()) x = b / a for i in range(0…… 题解列表 2023年02月08日 0 点赞 0 评论 364 浏览 评分:6.7
分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int x, y; scanf("%d", &x); if (x < 1) { y = x; …… 题解列表 2023年02月08日 0 点赞 0 评论 154 浏览 评分:0.0
数字三角形模型 摘要:# 数字三角形模型原题 ## 动态规划 1.二维状态表示,f[i][j]表示走到(i,j)(包括)时的最大路径权值。 2.状态转移可由f[i - 1][j - 1]和f[i][j - 1]得…… 题解列表 2023年02月08日 0 点赞 0 评论 351 浏览 评分:0.0
数字三角形模型 摘要:## 数字三角形模型 ### 注意事项 1.注意边界问题,第一行和第一列只有一个方向能过来。 2.题目中说的(2N - 1)其实是限制了走的方向。 #### 代码 ``` #i…… 题解列表 2023年02月08日 0 点赞 0 评论 340 浏览 评分:0.0
python DFS解法 摘要:v,w=map(int,input().split())pvw=[]for i in range(5): pvw.append([int(_) for _ in input().split()]…… 题解列表 2023年02月08日 0 点赞 0 评论 253 浏览 评分:0.0