编写题解 1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:注意数组类型为char不是int参考代码:#include<stdio.h>#include<string.h>void sort(char arr[100], int a){ …… 题解列表 2024年02月04日 0 点赞 0 评论 467 浏览 评分:0.0
三个嵌套for循环+pow函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> //pow函数的头文件int main(){ int a,b,c,cn,sn; cn=sn=0;…… 题解列表 2024年02月04日 0 点赞 0 评论 522 浏览 评分:0.0
三个for循环秒杀 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a,b,c,d,e,f,an,bn,cn,sn; an=bn=cn=sn=0; scanf("…… 题解列表 2024年02月04日 0 点赞 0 评论 479 浏览 评分:0.0
跟上题解决思路一致,两个嵌套for循环解法 摘要:解题思路:这里主要先分析阶乘求和,主要有两个步骤:第一个步骤是从n递减相乘,再将n-1重新循环再递减相乘,直到n=1;这部分代码如下: for (a = n; a >= 1; a--) { …… 题解列表 2024年02月04日 0 点赞 0 评论 610 浏览 评分:0.0
编写题解 2795: 财务管理 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a[12],sum=0; int i; for(i=0;i<12;i++) …… 题解列表 2024年02月04日 0 点赞 0 评论 1059 浏览 评分:9.9
题目2768:与圆相关的计算 摘要:解题思路:硬解注意事项:请问为什么加上下面if就是83分,题目的范围这么表述有没有问题,或者怎么改,求大佬解答参考代码:#include<stdio.h>int main(){ double r…… 题解列表 2024年02月04日 1 点赞 2 评论 890 浏览 评分:0.0
编写题解 2791: 计算邮资 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,c; char b; scanf("%d %c",&a,&b); c=a-1…… 题解列表 2024年02月04日 0 点赞 0 评论 662 浏览 评分:9.9
大整数加法(C++) 摘要://大整数加法#include <bits/stdc++.h>using namespace std;int na[1005], nb[1005];string add(string a, strin…… 题解列表 2024年02月04日 0 点赞 0 评论 572 浏览 评分:0.0
编写题解 2790: 分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; scanf("%f",&a); if(a>=0&&a<5) printf("%…… 题解列表 2024年02月04日 0 点赞 0 评论 549 浏览 评分:0.0
编写题解 2789: 骑车与走路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if((a/3.0+27+23)<(a/1.2)…… 题解列表 2024年02月04日 0 点赞 0 评论 753 浏览 评分:0.0