注意PI应该多往后去小数点哦 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define PI 3.14159int main(){ double r; scanf("%lf",&r); p…… 题解列表 2023年11月30日 0 点赞 0 评论 644 浏览 评分:9.9
C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:输入一个数N,作为循环步数;先写出每一个数的阶乘的循环体;在加上一个求和即可;注意事项:因为N<=20,所以int的值是不够的,要用long参考代码:#include<stdio.h>lon…… 题解列表 2023年11月30日 0 点赞 0 评论 357 浏览 评分:9.9
非常简单的斐波那契数列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n=1; int a=1; int b=1; int c=0; scanf("%d",&n); prin…… 题解列表 2023年11月30日 0 点赞 0 评论 273 浏览 评分:9.9
3077: 信息学奥赛一本通T1332-周末舞会 摘要:解题思路:自己想注意事项:无参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b…… 题解列表 2023年11月30日 0 点赞 0 评论 357 浏览 评分:9.9
一个函数直接打印就行了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ printf(" * \n * * \n*****"); return 0;}…… 题解列表 2023年11月30日 0 点赞 0 评论 785 浏览 评分:7.3
计算球体积,认识EOF 摘要:解题思路:注意事项:EOF是End Of File的意思,表示文件结束,无可读取参考代码:#include<stdio.h>#include<math.h>#define PI 3.14159int …… 题解列表 2023年11月30日 0 点赞 0 评论 340 浏览 评分:0.0
结构体之成绩统计2题解(java) 摘要:解题思路: 先定义一个学生类Student,并且设置学号,姓名,三科的成绩,并给出输入的这些数据的方法,然后先根据输入的Student类的数据来将平均数挨个输出,之后比对三科成绩最高分的学生,然…… 题解列表 2023年11月30日 0 点赞 0 评论 508 浏览 评分:9.9
c代码记录之选择排序--指针练习 摘要: #include int main(){ int num[10],i,j,min,middle; //建立10个长度的整型数组 …… 题解列表 2023年11月30日 0 点赞 0 评论 310 浏览 评分:0.0
1097 蛇形矩阵 摘要:解题思路:其实就是找每个位置上的数与行和列的关系。注意事项:参考代码:#include<stdio.h>int main(){ int n; int a=0,b=1; scanf("%d",&n); …… 题解列表 2023年11月30日 0 点赞 0 评论 243 浏览 评分:9.9
c++ 边乘边加 摘要:#include<iostream> using namespace std; int a[1000],b[1000]; void cheng(int a[],int c) { int j…… 题解列表 2023年11月30日 0 点赞 0 评论 431 浏览 评分:6.0