【编程入门】利润计算(比较容易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int x,w; scanf("%d",&x); i…… 题解列表 2023年11月04日 0 点赞 0 评论 290 浏览 评分:9.9
[编程入门]分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int x,y; scanf("%d",&x); if(x<1…… 题解列表 2023年11月04日 0 点赞 0 评论 322 浏览 评分:9.9
for循环c语言版 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,n; int ax=1; scanf("%d %d",&a,&n); if(…… 题解列表 2023年11月04日 0 点赞 0 评论 430 浏览 评分:9.9
字符串分类统计 摘要:解题思路:注意事项:这段代码没有考虑输入字符串中的特殊字符、标点符号等情况。它只会统计字母、数字、空格和其他字符的个数。参考代码:#include <stdio.h> #include <strin…… 题解列表 2023年11月04日 0 点赞 0 评论 257 浏览 评分:9.9
求偶数和标准方法 摘要:解题思路:定义数组储存数据,然后遍历,判断是否是偶数,累加。注意事项:请好好学习,谢谢;参考代码://求偶数和#include <stdio.h>int main(){ int i, n, su…… 题解列表 2023年11月04日 1 点赞 0 评论 420 浏览 评分:9.9
利用等差数列求和公式解题 摘要:解题思路:利用等差数列求和公式,sn=na1+n(n+1)/2 * d注意事项:天冷了,请多穿衣服。参考代码://等差数列#include <stdio.h>int main(){ int n…… 题解列表 2023年11月04日 0 点赞 0 评论 388 浏览 评分:9.9
自定义函数判断闰年 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int is_prime_year(int x) { if((x%4==0&&x%100!=0)||x%400==0)…… 题解列表 2023年11月05日 0 点赞 0 评论 241 浏览 评分:9.9
非递归方法解决最长公共子序列 摘要:解题思路:使用二维数组来记录相等的情况,根据左边和上方的数字以及相等的情况来为二维数组赋值注意事项:起始项为【1,1】,所以要i-1,j-1;参考代码:#include <iostream>#incl…… 题解列表 2023年11月05日 0 点赞 0 评论 387 浏览 评分:9.9
C语言 AC通过 摘要:include <stdio.h> #include <string.h> int main() { char input[1001]; scanf("%s", input);…… 题解列表 2023年11月05日 0 点赞 0 评论 290 浏览 评分:9.9
使用二分查找算法解猜价模拟 摘要:解题思路:二分查找法:确定被查找的范围,确定其左下标和右下标,然后再确定中间元素的下标中间元素比要找的小,要找的在中间元素的右边。中间元素比较要找的大,要找的中间元素的左边。数组在传参的时候仅仅传过去…… 题解列表 2023年11月05日 0 点赞 0 评论 258 浏览 评分:9.9