1076内部收益率(二分查找法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>// 先通过求一次导,可以知道该函数是单调递减,有且仅有一个值使等式等于0,//不会存在两个值,以及没有…… 题解列表 2024年05月28日 0 点赞 0 评论 559 浏览 评分:0.0
1097蛇行矩阵(两个for 循环解决) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(scanf("%d",&n)!=EOF)//注意题目要求是多组输入 { int a[…… 题解列表 2024年05月28日 0 点赞 0 评论 588 浏览 评分:0.0
2857: 加密的病历单 摘要:解题思路:先左移,再逆序,再转换大小写我这个为什么提交91分啊,哪里有问题啊注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS 1#pragma warning (di…… 题解列表 2024年05月28日 0 点赞 0 评论 752 浏览 评分:0.0
阶乘求和(c语言) 摘要:解题思路:注意事项:要注意类型为long long int 型,否则会溢出,导致错误参考代码:#include <stdio.h> long long int fun(int n){ long …… 题解列表 2024年05月28日 0 点赞 0 评论 517 浏览 评分: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 评论 590 浏览 评分: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 评论 408 浏览 评分:0.0
编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int count(int num) { int i; for(i=…… 题解列表 2024年05月28日 0 点赞 0 评论 587 浏览 评分: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 评论 685 浏览 评分: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 评论 917 浏览 评分:0.0
编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> void matha(float a,float b,float c,double delta)…… 题解列表 2024年05月29日 0 点赞 0 评论 477 浏览 评分:0.0