核桃的数量(c语言巧妙解答) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,flag,i; scanf("%d %d %d",&a,&b,&c); i…… 题解列表 2021年12月16日 0 点赞 0 评论 526 浏览 评分:9.9
删除数组中的0元素 摘要:解题思路:先获取一个含0的数组,用for循环排出含0的元素,之后打印新的数组和个数注意事项:要注意的地方都写在代码中了。参考代码:如下…… 题解列表 2021年12月16日 0 点赞 0 评论 823 浏览 评分:8.0
编写题解 1044: [编程入门]三个字符串的排序,自己造轮子的那种 摘要:~~其实这道题目哈,如果是调用方法,很简单的,但是学习嘛就是要理解其中的原理,今天我用自定义方法来写的。~~ 解题思路: 一看题目,就知道是排序了; 首先我得读取三个字符串数组吧,那我定义一个字…… 题解列表 2021年12月16日 0 点赞 0 评论 722 浏览 评分:9.9
2131-01背包-动态规划 摘要:#include<stdio.h> int a[31][201]; int max(int a,int b) { return a>b?a:b; } void beibao(int M,…… 题解列表 2021年12月16日 0 点赞 0 评论 651 浏览 评分:9.9
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:for循环注意事项:求总路程的时候要减去最后一次反弹的高度参考代码:#include<stdio.h>int main(){ int n; float h; scanf("…… 题解列表 2021年12月16日 0 点赞 0 评论 406 浏览 评分:9.9
用二维数组解决问题 摘要:解题思路:我们举一个例子设一个二维数组a[i][j],当N=5的时候这个矩阵是这个样子(里面的数字是随便给的) a[0] a[1] a[2] a[3] a[4]a[0] 1 …… 题解列表 2021年12月16日 0 点赞 0 评论 529 浏览 评分:0.0
Minesweeper(c 语言)简单明了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>char sweep(char a[][100],int n,int m){ int i,j,k=0; char coun…… 题解列表 2021年12月16日 0 点赞 1 评论 516 浏览 评分:9.9
构造数字排序(C++) 摘要:解题思路:使用数字排序 控制格式输出注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c,…… 题解列表 2021年12月15日 0 点赞 0 评论 670 浏览 评分:9.9
自定义函数之整数处理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; shuru(a); xunhuan(a); output(a); return 0;…… 题解列表 2021年12月15日 0 点赞 0 评论 419 浏览 评分:0.0
1113: C语言考试练习题_保留字母 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; for…… 题解列表 2021年12月15日 0 点赞 0 评论 487 浏览 评分:0.0