编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项: 定义成double类型是全对,定义成float类型是64分,所以要用double类型。参考代码:#include<stdio.h>#include<math.h>int main…… 题解列表 2022年12月12日 0 点赞 0 评论 517 浏览 评分:9.5
有错误请指出 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,n; scanf("%d %d",&a,&n); int i=0,cheng=1; …… 题解列表 2022年12月20日 0 点赞 0 评论 605 浏览 评分:9.5
最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[1000],i,n,max=0; scanf("%d",&n); fo…… 题解列表 2022年12月30日 0 点赞 2 评论 496 浏览 评分:9.5
3040: An Easy Problem 摘要:解题思路:定义一个计数函数,从n+1开始循环,用计数函数扫描到的第一个数就是最小的。 要就复制吧,爱就点赞吧! *加五星好评*注意事项:从n+1开始循环!参考代码:#include<bits/st…… 题解列表 2023年01月04日 0 点赞 0 评论 367 浏览 评分:9.5
python最简短做法 摘要:解题思路: 在一篇博客找到的原理图。可以根据此图设计六个方向,x,y轴方向如图所示。注意事项: 可以注意到点变化的方向只有(1,0)、(-1,0)、(0,1)、(0,-1)、(1,1)、(-1,-1)…… 题解列表 2023年01月30日 1 点赞 2 评论 1359 浏览 评分:9.5
2839: 石头剪刀布(Python) 摘要:解题思路:注意事项:参考代码:N,NA,NB = map(int,input().split()) la = list(map(int,input().split())) lb = list(ma…… 题解列表 2023年02月23日 0 点赞 0 评论 489 浏览 评分:9.5
解决纸张尺寸问题 摘要:解题思路:使用列表存储两个长短边的信息,根据用户输入的尺寸,判断长短边(要判断输出的长短边信息,要先输出长边)参考代码:long=[] short=[] s=int(input().strip()…… 题解列表 2023年03月10日 0 点赞 0 评论 946 浏览 评分:9.5
不会的,可以简单看看 摘要:解题思路:把dijkstra模板拿过来,简单改一下就行,我用的是堆优化的版本。注意事项:有些编译器可能memset函数无法正常使用;参考代码:#include <bits/stdc++.h>#incl…… 题解列表 2023年03月16日 0 点赞 0 评论 383 浏览 评分:9.5
#C++2680——蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:由题意可得出:从A1开始,满足规律:length[i]=wide[i-1]wide[i]=length[i-1]/2;按照规律构造答案即可;******按规律办事******参考代码:#in…… 题解列表 2023年03月17日 1 点赞 0 评论 622 浏览 评分:9.5
简单递归暴力求解 摘要:解题思路:通过递归遍历每一种情况,并通过剪枝减少遍历次数节省时间注意事项:暴力求解可能得不到满分,但可以得到大多数分值参考代码:#includelong long int n;long long in…… 题解列表 2023年04月01日 0 点赞 0 评论 841 浏览 评分:9.5