报数问题的C++解法--暴力 摘要:解题思路:首先,输入该循环链表,在头结点指向为空时,即链表为空时,新增节点的指向就是其本身。以后新增节点以后,指针域保存的是第一个结点的地址。其次,进行排除。设置两个指针,分别为prev和p。p是pr…… 题解列表 2022年10月04日 0 点赞 0 评论 665 浏览 评分:9.5
蓝桥杯基础练习VIP-报时助手 巨简单的代码 摘要:解题思路:先用一个数组存放0~24,然后再用一个数组存放20~50之间的整数,小时可以直接用第一个数组,分钟以24为限,具体看代码注意事项:参考代码:#include<stdio.h>int main…… 题解列表 2022年10月11日 0 点赞 0 评论 621 浏览 评分:9.5
最直观的解题思路 摘要:### 不要想的太复杂,年轻人! ```c #include int main(void) { int temp,max = -214570227; while(1) …… 题解列表 2022年11月13日 1 点赞 0 评论 516 浏览 评分:9.5
2120: 信息学奥赛一本通T1312-昆虫繁殖(递归算法) 摘要:解题思路:递归算法加记忆化搜索 ```cpp #include using namespace std; #define ll long long int//宏定义long long int …… 题解列表 2022年11月29日 0 点赞 0 评论 879 浏览 评分:9.5
简单题,取每一位的进制为max(max(A[i],B[i])+1,2LL) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>//简单题 using namespace std;#define maxn 1010#define maxma 10001…… 题解列表 2022年12月01日 0 点赞 0 评论 1013 浏览 评分:9.5
编写题解 2774: 计算三角形面积 摘要:解题思路:注意事项: 定义成double类型是全对,定义成float类型是64分,所以要用double类型。参考代码:#include<stdio.h>#include<math.h>int main…… 题解列表 2022年12月12日 0 点赞 0 评论 597 浏览 评分: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 评论 658 浏览 评分:9.5
最高的分数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[1000],i,n,max=0; scanf("%d",&n); fo…… 题解列表 2022年12月30日 0 点赞 2 评论 547 浏览 评分:9.5
3040: An Easy Problem 摘要:解题思路:定义一个计数函数,从n+1开始循环,用计数函数扫描到的第一个数就是最小的。 要就复制吧,爱就点赞吧! *加五星好评*注意事项:从n+1开始循环!参考代码:#include<bits/st…… 题解列表 2023年01月04日 0 点赞 0 评论 440 浏览 评分:9.5
python最简短做法 摘要:解题思路: 在一篇博客找到的原理图。可以根据此图设计六个方向,x,y轴方向如图所示。注意事项: 可以注意到点变化的方向只有(1,0)、(-1,0)、(0,1)、(0,-1)、(1,1)、(-1,-1)…… 题解列表 2023年01月30日 1 点赞 2 评论 1449 浏览 评分:9.5