应该是这个吧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; double b; scanf("%f%lf",&a,&b); pri…… 题解列表 2022年11月09日 0 点赞 2 评论 1019 浏览 评分:7.3
完数的判断(一般解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i,j,a[100],m,x; int N,s; scanf…… 题解列表 2022年11月09日 0 点赞 0 评论 472 浏览 评分:0.0
求总时间.... 摘要:#include<stdio.h>int main(){int i,N;float time=30,sum=0;scanf("%d",&N);for(i=1;i<N;i++){ sum+=time; …… 题解列表 2022年11月09日 0 点赞 0 评论 550 浏览 评分:0.0
二叉排序树的实现(主要语言是C,只是用了C++的引用) ```cpp#include#includetypedefintElemType;typedefstructBiNode{ElemTypedata;structBiNode*lchild,*rchild;}BiNode,*BSTree;boolInsertBST(BSTree&root, 题解列表 2022年11月09日 0 点赞 0 评论 678 浏览 评分:0.0
用数组遍历来求平均数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum,i; int arr[10]; for(i=0;i<10;i++){ …… 题解列表 2022年11月09日 0 点赞 0 评论 496 浏览 评分:0.0
简单粗暴的解法 摘要:解题思路:立方用自定义函数,主函数用for循环注意事项:参考代码:#include<stdio.h>double power(double n,int p){ int i;double pow=1; …… 题解列表 2022年11月08日 0 点赞 0 评论 806 浏览 评分:7.3
C语言训练-"水仙花数"问题1-题解 摘要:解题思路:先取出各位数,再分别立方,并用if else判断,思路很简洁。。。。新手勿喷。注意事项:自定义函数参考代码:#include<stdio.h>double power(double n,in…… 题解列表 2022年11月08日 0 点赞 0 评论 684 浏览 评分:0.0
有趣的跳跃(c语言简易方法) 摘要:解题思路:注意事项:用到多个数组参考代码:#include<stdio.h>int main(){ int a[3000],b[3000],n,d; scanf("%d",&n); …… 题解列表 2022年11月08日 0 点赞 4 评论 839 浏览 评分:6.0
多边形内角和 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int a,b,c,n; int h; int sum=0; scanf("%d",&n); h=(n-2)*…… 题解列表 2022年11月08日 0 点赞 0 评论 821 浏览 评分:8.0
求e的值,通俗易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n; double sum=1,t=1; scanf("%d",&n); f…… 题解列表 2022年11月08日 0 点赞 2 评论 1037 浏览 评分:9.9