编写题解 1025: [编程入门]数组插入处理 -- 冒泡排序原理 解题思路:运用冒泡排序的原理,将插入的数据,与排好顺序的数组,依次比大小。```c#includeintmain(void){inta[10];//插入数据后的数组长度。inti;intdex;//插入的数据。intj=8;//插入的数据dex与原来数组比较的次数。 题解列表 2023年02月10日 0 点赞 0 评论 480 浏览 评分:0.0
C语言训练-"水仙花数"问题1 简单解法 摘要:解题思路: 一 if else嵌套使用 二 明确求输入数字的各个位数上的数字的方法: 1.结合整形数据类型与除法求特定位数上的数字 …… 题解列表 2023年02月10日 1 点赞 0 评论 547 浏览 评分:9.9
自定义函数之字符串反转(除了hellow word 外简单的代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[100]; gets(str); int n = strl…… 题解列表 2023年02月09日 0 点赞 0 评论 509 浏览 评分:9.9
自定义函数之数字分离(这样也行) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char arr[5]; gets(arr); int n = strlen…… 题解列表 2023年02月09日 0 点赞 0 评论 527 浏览 评分:9.9
最简单的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=1; for(i=1;i<=n;i++)…… 题解列表 2023年02月09日 0 点赞 0 评论 459 浏览 评分:0.0
球弹跳高度的计算C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h; scanf("%d",&h); int i; double h1=h; double s=0; f…… 题解列表 2023年02月09日 0 点赞 1 评论 934 浏览 评分:5.3
最长上升子序列问题3 ##最长上升子序列问题####注意事项1.与登山问题相同[https://www.dotcpp.com/oj/problem3051.html](https://www.dotcpp.com/oj/problem3051.html)####代码```#include#includeusingnames 题解列表 2023年02月09日 0 点赞 0 评论 613 浏览 评分:0.0
正常血压(简单明晰) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct record{ int a; int b;}press[100];//血压int main(){ int n; …… 题解列表 2023年02月09日 0 点赞 0 评论 790 浏览 评分:6.4
第一次打卡 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; while(n) { i=i*10+n%10; n/=10; } return i…… 题解列表 2023年02月09日 0 点赞 0 评论 444 浏览 评分:0.0
又是我,这个更好理解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int a[n]; double price=0.1; dou…… 题解列表 2023年02月09日 0 点赞 0 评论 611 浏览 评分:0.0