[编程基础]输入输出练习之浮点数专题 摘要:```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 评论 321 浏览 评分: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 评论 230 浏览 评分: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 评论 290 浏览 评分:0.0
2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sushu(long long x){ if(x<2) …… 题解列表 2023年07月22日 0 点赞 0 评论 371 浏览 评分: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 评论 318 浏览 评分:0.0
[编程入门]自定义函数之数字后移-简单方法 摘要:解题思路:通过将后m位赋值给一个新数组b的前m-1位,在将数组剩余的前n-m赋值给新数组的后m位注意事项:注意j的值参考代码:#include<stdio.h>int main(){ int a[10…… 题解列表 2023年07月22日 0 点赞 0 评论 297 浏览 评分:0.0
2778: 判断数正负 摘要:```c #include int main() { int n; scanf("%d",&n); if(n>0) printf("positive");…… 题解列表 2023年07月23日 0 点赞 0 评论 332 浏览 评分:0.0
超级楼梯使用动态规划算法,C++实现! 摘要:# 动态规划 ```c++ #include #include using namespace std; const int N = 100010; int n, m; int…… 题解列表 2023年07月23日 0 点赞 0 评论 356 浏览 评分:0.0
C++ STL next_permutation 摘要:# STL `next_permutation` ```c++ #include #include #include using namespace std; int main(…… 题解列表 2023年07月23日 0 点赞 0 评论 291 浏览 评分:0.0
C语言训练-大、小写问题-简单方法 摘要:解题思路:大写字母A与小写字母a相差32,用第二个数组获取重新赋值的b[i]=a[i]+32注意事项:记得用'\0',结束输出参考代码:#include<string.h>int ma…… 题解列表 2023年07月23日 0 点赞 0 评论 224 浏览 评分:0.0