题解列表

筛选

三个嵌套for循环+pow函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>    //pow函数的头文件int main(){ int a,b,c,cn,sn; cn=sn=0;……

三个for循环秒杀

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float a,b,c,d,e,f,an,bn,cn,sn; an=bn=cn=sn=0; scanf("……

跟上题解决思路一致,两个嵌套for循环解法

摘要:解题思路:这里主要先分析阶乘求和,主要有两个步骤:第一个步骤是从n递减相乘,再将n-1重新循环再递减相乘,直到n=1;这部分代码如下: for (a = n; a >= 1; a--) {      ……

编写题解 2795: 财务管理

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float a[12],sum=0;    int i;    for(i=0;i<12;i++)    ……

题目2768:与圆相关的计算

摘要:解题思路:硬解注意事项:请问为什么加上下面if就是83分,题目的范围这么表述有没有问题,或者怎么改,求大佬解答参考代码:#include<stdio.h>int main(){    double r……

编写题解 2791: 计算邮资

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a,c;    char b;    scanf("%d %c",&a,&b);    c=a-1……

大整数加法(C++)

摘要://大整数加法#include <bits/stdc++.h>using namespace std;int na[1005], nb[1005];string add(string a, strin……

编写题解 2790: 分段函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){   float a;   scanf("%f",&a);   if(a>=0&&a<5)   printf("%……