1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> //注意:代码中用到 sqrt(开平方)需添加头文件<math.h>#define S(a,b…… 题解列表 2023年11月24日 0 点赞 0 评论 144 浏览 评分:0.0
2796: 求整数的和与均值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double sum=0.0; scanf("%d",&n); int a[n]; for(int…… 题解列表 2023年11月24日 1 点赞 0 评论 230 浏览 评分:0.0
蓝桥杯算法训练VIP-整数平均值 摘要:解题思路:没学指针就先不用注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); int a[n]; for(int i…… 题解列表 2023年11月24日 0 点赞 0 评论 148 浏览 评分:0.0
数位排序 运用sort自定义排序 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int a,int b){ int a…… 题解列表 2023年11月24日 0 点赞 1 评论 333 浏览 评分:10.0
2836: 数组逆序重放 摘要:``` #include using namespace std; int main(){ int n; cin>>n; int a[n]; for( int i=1;i>a[i…… 题解列表 2023年11月24日 0 点赞 0 评论 298 浏览 评分:0.0
题解 2833: 金币 摘要: #include using namespace std; int main() { int sum=0,d=0,a; cin>>a; …… 题解列表 2023年11月24日 0 点赞 0 评论 172 浏览 评分:0.0
2835: 计算书费 摘要:``` #include using namespace std; int main(){ double a[10] = {28.9,32.7,45.6,78,35,86.2,27.8,43…… 题解列表 2023年11月24日 0 点赞 0 评论 245 浏览 评分:9.9
题解 2832: 第n小的质数 摘要: #include using namespace std; int a,sum,s=1,q; int main(){ cin>>a; fo…… 题解列表 2023年11月24日 0 点赞 0 评论 237 浏览 评分:0.0
2780: 奇偶数判断 摘要:# 思路 用三目运算符判断输入值的奇偶性 # code ```c++ #include using namespace std; int main() { int t;…… 题解列表 2023年11月24日 0 点赞 0 评论 322 浏览 评分:9.9
1762: printf基础练习 摘要:注意事项:带前缀要加#参考代码:#include<iostream> using namespace std; int main() { int t=123456789; …… 题解列表 2023年11月24日 0 点赞 0 评论 584 浏览 评分:6.0