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 评论 464 浏览 评分:0.0
编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> int count(int num) { int i; for(i=…… 题解列表 2024年05月28日 0 点赞 0 评论 387 浏览 评分: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 评论 199 浏览 评分: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 评论 375 浏览 评分:0.0
二次C语言-等差数列 摘要:解题思路:使用for循环参考代码:#include<stdio.h>int main(){int i, num, grade = 2, total = 0;scanf("%d",&num);for(i…… 题解列表 2024年05月28日 0 点赞 1 评论 731 浏览 评分:9.9
阶乘求和(c语言) 摘要:解题思路:注意事项:要注意类型为long long int 型,否则会溢出,导致错误参考代码:#include <stdio.h> long long int fun(int n){ long …… 题解列表 2024年05月28日 0 点赞 0 评论 320 浏览 评分:0.0
java--study||O.o 摘要:模拟参考代码: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamRead…… 题解列表 2024年05月28日 0 点赞 0 评论 295 浏览 评分:10.0
2857: 加密的病历单 摘要:解题思路:先左移,再逆序,再转换大小写我这个为什么提交91分啊,哪里有问题啊注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS 1#pragma warning (di…… 题解列表 2024年05月28日 0 点赞 0 评论 496 浏览 评分:0.0
1097蛇行矩阵(两个for 循环解决) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(scanf("%d",&n)!=EOF)//注意题目要求是多组输入 { int a[…… 题解列表 2024年05月28日 0 点赞 0 评论 364 浏览 评分:0.0
1076内部收益率(二分查找法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>// 先通过求一次导,可以知道该函数是单调递减,有且仅有一个值使等式等于0,//不会存在两个值,以及没有…… 题解列表 2024年05月28日 0 点赞 0 评论 328 浏览 评分:0.0