阶乘求和(c语言) 摘要:解题思路:注意事项:要注意类型为long long int 型,否则会溢出,导致错误参考代码:#include <stdio.h> long long int fun(int n){ long …… 题解列表 2024年05月28日 0 点赞 0 评论 545 浏览 评分:0.0
求和训练(c语言) 摘要:解题思路:注意事项:进行倒数和相加时,需要为1.0/c,如果为1/c,结果会比原值小;参考代码:#include <stdio.h> void fun(int a,int b,int c){ i…… 题解列表 2024年05月28日 0 点赞 0 评论 619 浏览 评分:0.0
水仙花数判断(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int a=0,b=0,c=0; for(int i=100;i<1000;i++){ …… 题解列表 2024年05月28日 0 点赞 0 评论 433 浏览 评分:0.0
编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int count(int num) { int i; for(i=…… 题解列表 2024年05月28日 0 点赞 0 评论 619 浏览 评分:0.0
1093字符逆序(一个while和for循环) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[105]; char c; int i=0; while(sc…… 题解列表 2024年05月29日 0 点赞 0 评论 707 浏览 评分:0.0
1083Hello, world!(一个while解决) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int a; while(scanf("%d",&a)!=EOF&&a!=&…… 题解列表 2024年05月29日 0 点赞 0 评论 944 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> void matha(float a,float b,float c,double delta)…… 题解列表 2024年05月29日 0 点赞 0 评论 497 浏览 评分:0.0
1084素数的判断(函数判断) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void shuchu(int n){ if(n==0||n==1)//题目包括了这两个,但它们不是素数 return ; if(n=…… 题解列表 2024年05月29日 0 点赞 0 评论 539 浏览 评分:0.0
编写题解 1042: [编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> void count(char* str){ …… 题解列表 2024年05月29日 0 点赞 0 评论 890 浏览 评分:0.0
10845 A+B(1)(while循环输出) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ long long a,b; while(scanf("%lld%lld",&a,&b)!=EOF) { pr…… 题解列表 2024年05月29日 0 点赞 1 评论 846 浏览 评分:0.0