二次C语言-等差数列 摘要:解题思路:使用for循环参考代码:#include<stdio.h>int main(){int i, num, grade = 2, total = 0;scanf("%d",&num);for(i…… 题解列表 2024年05月28日 0 点赞 1 评论 714 浏览 评分:9.9
编写题解 1049: [编程入门]结构体之时间设计 摘要:```c #include struct Data{ int year; int month; int day; }data; int main() { …… 题解列表 2024年05月29日 0 点赞 0 评论 197 浏览 评分:9.9
贪心+DP的思路就可以解决问题。。。 摘要:解题思路:按照w+v的值从小到大排列后可以使后面的能够放在下面的可能最大。。。注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const in…… 题解列表 2024年05月31日 0 点赞 0 评论 292 浏览 评分:9.9
2886: 图像旋转 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;typedef long long ll;ll…… 题解列表 2024年06月01日 0 点赞 0 评论 222 浏览 评分:9.9
2880: 计算鞍点 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;const int N=1e3+5;typedef long long ll;ll…… 题解列表 2024年06月01日 0 点赞 0 评论 367 浏览 评分:9.9
C++-使用动态数组,使用检查目标数组是否重复或检查原数组待输入值是否重发 摘要:解题思路: 排序:使用的普通的冒泡排序,其他的排序也可以无影响 去重: 思路1:检测目标数组是否存在与当前出原数组待输入项相等的值 思路2:检测原数组待输入项i与i-1项是否相等 注意事…… 题解列表 2024年06月01日 0 点赞 0 评论 245 浏览 评分:9.9
递归法(辗转相除法)求最大公约数 摘要:解题思路:用辗转相除法求最大公约数,在借助最大公约数求最小公倍数注意事项:参考代码:def yue(m,n): if n==0:return m else:return yue(n,m%n…… 题解列表 2024年06月01日 0 点赞 0 评论 367 浏览 评分:9.9
用函数写的 摘要:解题思路:注意事项:参考代码:def get_sum(a=4,b=3): a,b =map(int,input().split()) sum = a%b print(sum)get_…… 题解列表 2024年06月02日 0 点赞 0 评论 404 浏览 评分:9.9
编写题解 1043: [编程入门]三个数字的排序 摘要:```c #include #define N 3 int main(){ int nums[N],i=0,j,temp; while(i…… 题解列表 2024年06月03日 0 点赞 0 评论 345 浏览 评分:9.9
编写题解 2544: N以内累加求和 摘要:```c #include int main() { int num,i,sum=0; scanf("%d",&num); for(i=0;i…… 题解列表 2024年06月03日 0 点赞 0 评论 358 浏览 评分:9.9