题解列表

筛选

C语言训练-"水仙花数"问题1 简单解法

摘要:解题思路:           一  if else嵌套使用           二  明确求输入数字的各个位数上的数字的方法:            1.结合整形数据类型与除法求特定位数上的数字  ……

最简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i; int s=1; for(i=1;i<=n;i++)……

球弹跳高度的计算C语言

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int h; scanf("%d",&h); int i; double h1=h; double s=0; f……

最长上升子序列问题3

##最长上升子序列问题####注意事项1.与登山问题相同[https://www.dotcpp.com/oj/problem3051.html](https://www.dotcpp.com/oj/problem3051.html)####代码```#include#includeusingnames

正常血压(简单明晰)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct record{ int a; int b;}press[100];//血压int main(){     int n;  ……

第一次打卡

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ff(int n){ int i=0; while(n) { i=i*10+n%10; n/=10; } return i……

又是我,这个更好理解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; scanf("%d",&n); int a[n]; double price=0.1; dou……