宏定义之找最大数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define M(a,b,c) a>b?(a>c?a:c):(b>c?b:c)float Max(float m,float n){ …… 题解列表 2023年07月07日 0 点赞 0 评论 447 浏览 评分:0.0
满分dfs(python) 摘要:解题思路:注意事项:参考代码:import functools n,m = map(int, input().split()) @functools.lru_cache(None) def df…… 题解列表 2023年07月07日 0 点赞 0 评论 652 浏览 评分:0.0
为了答案而答题 摘要:解题思路:凑答案注意事项:参考代码:#include<stdio.h>int main(void){ int num,i,j,k,z,m=0,l=1; scanf("%d",&num); …… 题解列表 2023年07月07日 0 点赞 0 评论 488 浏览 评分:9.5
2809: 菲波那契数列(C语言) 摘要: #include int main() { int k; scanf("%d",&k); int a=1,b=1,c=0; int i; if(k==1||k=…… 题解列表 2023年07月07日 0 点赞 1 评论 1105 浏览 评分:9.2
桥杯2013年第四届真题-买不到的数目 ##蓝桥杯2013年第四届真题-买不到的数目```cpp#includeusingnamespacestd;intmain(){intm,n,imax,a[101000]={0};cin>>m>>n;a[m]=a[n]=1;if(m>n)swap(m,n);for(inti=m;i 题解列表 2023年07月07日 0 点赞 0 评论 637 浏览 评分:0.0
2810: 鸡尾酒疗法(C语言,二维数组的解法) 摘要: #include int main() { int n; scanf("%d",&n); double a[n][2];//这里的数组我设置的是double,因为后面的精度…… 题解列表 2023年07月07日 0 点赞 1 评论 1025 浏览 评分:9.5
暴力破题。。。 摘要:解题思路: 暴力破题。参考代码:#include <bits/stdc++.h> using namespace std; int main() { int op[400]=…… 题解列表 2023年07月07日 0 点赞 0 评论 693 浏览 评分:9.9
优质题解 整数序列的元素最大跨度值(详细题解) 摘要:这道题的题目是“整数序列的元素最大跨度值”。给定一个整数序列,我们需要找到序列中的最大值和最小值,并计算它们之间的差值,即为最大跨度值。以下是详细的题解思路和步骤:1. 首先,我们定义两个变量 max…… 题解列表 2023年07月08日 2 点赞 2 评论 2231 浏览 评分:9.0
C语言训练-斐波纳契数列 摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) { int n,a=1,b=1,c; …… 题解列表 2023年07月08日 0 点赞 0 评论 597 浏览 评分:0.0
2811: 救援(C语言,重点就是向上取整用ceil()函数,不然的话就会报错) #include#includeintmain(){intn;//屋顶数intx,y;//坐标intnum;//人数scanf("%d",&n);doubles;//计算到原点的距离doublemoment=0;//每去一个屋顶一共要用的时间doublet=0;//一共所需要的时间for(inti=0 题解列表 2023年07月08日 0 点赞 0 评论 711 浏览 评分:9.9