2880: 计算鞍点 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ fo…… 题解列表 2023年07月22日 0 点赞 0 评论 473 浏览 评分:0.0
2836: 数组逆序重放(C语言) 摘要:###第一种 #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i=0;i-…… 题解列表 2023年07月22日 0 点赞 0 评论 513 浏览 评分:0.0
[编程基础]输入输出练习之浮点数专题 摘要:```c #include int main() { double a; scanf("%lf",&a); printf("%f\n%.5f\n%e\n%g",a,a,a,a)…… 题解列表 2023年07月22日 0 点赞 0 评论 537 浏览 评分:0.0
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sum(long long n){ long long …… 题解列表 2023年07月22日 0 点赞 0 评论 414 浏览 评分:0.0
2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long mymax(long long x,long long y,l…… 题解列表 2023年07月22日 0 点赞 0 评论 520 浏览 评分:0.0
2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sushu(long long x){ if(x<2) …… 题解列表 2023年07月22日 0 点赞 0 评论 644 浏览 评分:0.0
2837: 年龄与疾病(C语言) 摘要: #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i…… 题解列表 2023年07月22日 0 点赞 0 评论 533 浏览 评分:0.0
[编程入门]自定义函数之数字后移-简单方法 摘要:解题思路:通过将后m位赋值给一个新数组b的前m-1位,在将数组剩余的前n-m赋值给新数组的后m位注意事项:注意j的值参考代码:#include<stdio.h>int main(){ int a[10…… 题解列表 2023年07月22日 0 点赞 0 评论 530 浏览 评分:0.0
2778: 判断数正负 摘要:```c #include int main() { int n; scanf("%d",&n); if(n>0) printf("positive");…… 题解列表 2023年07月23日 0 点赞 0 评论 523 浏览 评分:0.0
超级楼梯使用动态规划算法,C++实现! #动态规划```c++#include#includeusingnamespacestd;constintN=100010;intn,m;inta[N],s[N];intf(intn){intf[41];f[1]=1;f[2]=1;for(inti=3;i>n;intnum=0;for(inti=0; 题解列表 2023年07月23日 0 点赞 0 评论 608 浏览 评分:0.0