[编程入门]利润计算-使用函数来处理利润(C语言) 摘要:利润(用 I 表示)提成分为6个阶段: ① 当 I < 100000时,提成占比为0.1; ②当 100000 < I …… 文章列表 2021年09月07日 0 点赞 0 评论 545 浏览 评分:0.0
等差数列记录 摘要: #include void fun(long int len) { int i; float sum = 0; long int a[…… 文章列表 2021年09月08日 0 点赞 0 评论 297 浏览 评分:0.0
【1482】蓝桥杯算法提高VIP_Pascal三角_(C++代码)_(自己写的版本)_(二维数组) 摘要:#include <iostream> #include <iomanip> using namespace std; //第一列全1 //右斜边全1 //第三行代表着第n行 其为第n…… 文章列表 2021年09月10日 0 点赞 0 评论 140 浏览 评分:0.0
力扣周赛——反转单词前缀 摘要:给你一个下标从 0 开始的字符串 word 和一个字符 ch 。找出 ch 第一次出现的下标 i ,反转 word 中从下标 0 开始、直到下标 i 结束(含下标 i )的那段字符。如果 word 中…… 文章列表 2021年09月12日 0 点赞 0 评论 238 浏览 评分:0.0
力扣周赛——可互换矩形的组数 摘要:用一个下标从 0 开始的二维整数数组 rectangles 来表示 n 个矩形,其中 rectangles[i] = [widthi, heighti] 表示第 i 个矩形的宽度和高度。如果两个矩形 …… 文章列表 2021年09月12日 0 点赞 0 评论 167 浏览 评分:0.0
最大子序列和的4种算法 摘要:题目:给定N个整数的序列{A1,A2,A3...,An},求函数f(i,j)=max(0,sum(num[i:j]))的最大值 算法1: 暴力解法 ```c int sum(int num[]…… 文章列表 2021年09月12日 0 点赞 0 评论 191 浏览 评分:0.0
删除链表中在[x,y]中的元素 摘要:```c #include void fun(SqList*L,ElemType x,ElemType y) { SqList *p1,*p2; int temp; …… 文章列表 2021年09月13日 0 点赞 0 评论 284 浏览 评分:0.0
delete the repeated number in the chain number array 摘要:```c //delete the repeated number in the chain number array #include #include typedef int Elem…… 文章列表 2021年09月13日 0 点赞 0 评论 157 浏览 评分:0.0
计蒜客——换瓶盖 摘要:王大钉喜欢喝酒,存货都喝完了,他就去楼下买,正好楼下的商店为了响应学校的 ACM 校赛推出了优惠活动:凡是在本店买的啤酒,喝完以后 33 个空瓶可以换一瓶,44 个瓶盖也可以换一瓶酒。 王大钉觉…… 文章列表 2021年09月14日 0 点赞 0 评论 309 浏览 评分:0.0
人员调度c语言 摘要:```c //a go b will go //b go c don't go //c or d go #include #include int *get(int num) { …… 文章列表 2021年09月14日 0 点赞 0 评论 206 浏览 评分:0.0