2825: 计算多项式的值 摘要:``` #include using namespace std; int main(){ double n,x,sum=1,num; cin>>x>>n; num=x; for…… 题解列表 2023年11月21日 0 点赞 0 评论 460 浏览 评分:6.0
大整数排序代码 摘要:#include<stdio.h> #include<math.h> #include<string.h> void swapstr(char*,char*); void swapstr(ch…… 题解列表 2023年11月22日 0 点赞 0 评论 531 浏览 评分:6.0
与圆相关的计算 ```cpp#include#include#definepi3.14159usingnamespacestd;intmain(){doubler;cin>>r;cout 题解列表 2023年11月22日 0 点赞 1 评论 740 浏览 评分:6.0
2771: 大象喝水 ```cpp#include#include#definepi3.14159usingnamespacestd;intmain(){inth,r;cin>>h>>r;cout 题解列表 2023年11月22日 0 点赞 0 评论 376 浏览 评分:6.0
2774: 计算三角形面积(利用海伦公式) ```cpp#include#include#includeusingnamespacestd;intmain(){floatx1,y1,x2,y2,x3,y3;cin>>x1>>y1>>x2>>y2>>x3>>y3;doublea=sqrt(pow(x1-x2, 题解列表 2023年11月22日 0 点赞 0 评论 688 浏览 评分:6.0
大整数加法的双向链表写法 摘要:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> struct lennum{ int num; struct l…… 题解列表 2023年11月22日 0 点赞 0 评论 376 浏览 评分:6.0
蓝桥杯算法训练VIP-整数平均值(指针) 摘要:解题思路:注意事项:参考代码:// 包含标准输入输出库 #include <stdio.h> // 定义一个函数myave,用于计算整数数组a的平均值 // 参数a是整数数组的首地址,sz是…… 题解列表 2023年11月23日 0 点赞 0 评论 872 浏览 评分:6.0
1762: printf基础练习 摘要:注意事项:带前缀要加#参考代码:#include<iostream> using namespace std; int main() { int t=123456789; …… 题解列表 2023年11月24日 0 点赞 0 评论 1008 浏览 评分:6.0
奇偶ASCII值判断 摘要:参考代码:#include<stdio.h> int main() { char a; scanf("%c",&a); if(a%2==0){ pr…… 题解列表 2023年11月29日 0 点赞 0 评论 834 浏览 评分:6.0
自定义函数处理素数——C语言;调用函数;易懂; 摘要:解题思路: 素数是除1和它本身之外没有它能除尽的数,所以使用循环与选择结构解题;注意事项: 一定注意不能在循环中使用if判断素数,否则会出现一串字母;所以定义一个新变量作为记录是否有数能被你…… 题解列表 2023年11月30日 0 点赞 0 评论 565 浏览 评分:6.0