二级C语言--公约公倍 摘要:要注意输入的方式:即是一次输入俩个数据,还是一次输入一个数据,分俩次输入b=list(map(int,input().split()))if len(b)<2: q=int(input()) …… 文章列表 2022年03月02日 0 点赞 0 评论 180 浏览 评分:0.0
选择排序-------- 摘要:#include <iostream>using namespace std;void xuanze(int a[],int n){ for (int i = 0; i < n-1; ++i) …… 文章列表 2022年03月04日 0 点赞 0 评论 142 浏览 评分:0.0
[编程入门]自定义函数求一元二次方程 C++ 摘要:# include <iostream> # include<iomanip> # include<cmath> using namespace std; int main() { …… 文章列表 2022年03月08日 0 点赞 0 评论 308 浏览 评分:0.0
1255能量项链记录 摘要:刚开始写忽视了好多细节比如一个点的左右在随时改变,没有认真考虑。然后以后能量项链学一学区间dp算法…… 文章列表 2022年03月09日 0 点赞 0 评论 211 浏览 评分:0.0
[编程入门]自定义函数之数字后移C++ 摘要:#include <iostream> using namespace std; void sort(int a[],int n) { int c[100]; for …… 文章列表 2022年03月09日 0 点赞 0 评论 133 浏览 评分:0.0
蓝桥杯直线题解(摘自ACWING) 摘要:#include<bits/stdc++.h>using namespace std;typedef long long ll;typedef long double ld;const int N=2…… 文章列表 2022年03月18日 0 点赞 0 评论 358 浏览 评分:0.0
分段函数求值 摘要:#include<stdio.h> int main() { int a; scanf("%d",&a); if(a<1) printf("%d",a); …… 文章列表 2022年03月18日 0 点赞 0 评论 191 浏览 评分:0.0
[编程入门]利润计算 摘要:#include<stdio.h> int main() { float award; scanf("%f",&award); if(award<100000) …… 文章列表 2022年03月18日 0 点赞 0 评论 172 浏览 评分:0.0
dfs-砝码称重问题 摘要:解题思路:利用dfs进行深度搜索:已知最终的目的(15 16),给出路径(1 2 4 8)设置货物中 G “+”代表左边,“-”表示右边 结束条件:G == 0;设置 flag=0表示 是否可以完成最…… 文章列表 2022年03月21日 0 点赞 0 评论 345 浏览 评分:0.0
校门外的树 摘要:#include <iosream> using namespace std; int main() { char a[10001]={0}; // int L,M; …… 文章列表 2022年03月28日 0 点赞 0 评论 180 浏览 评分:0.0