C语言训练-求PI*-题解(C++代码) ```cpp#includeusingnamespacestd;intmain(){doubletemp=1;//doublesum=0;inti=1;//while(fabs(temp)>=1E-6)//需要注意点{sum+=temp;//位置需要注意点, 题解列表 2020年04月22日 0 点赞 0 评论 1185 浏览 评分:0.0
Manchester-【小明A+B-题解(C语言代码)】 ####解题思路(字符串思路):解读题目得到原始题意:输入两个非负整数A,B求A+B的和然后输出结果的最后两位数的值。如何输出结果的最后两位的值:假设和是C,把C转化为字符串SUM(此时不能直接输出SUM中最后两个字符,因为假设最后两个字符是09的的话输出的不是9)。 题解列表 2020年04月22日 0 点赞 0 评论 1889 浏览 评分:9.9
倒数第二-题解(C语言代码) 摘要: #include "stdio.h" int main(){ int c; scanf("%d",&c); while(c--){ …… 题解列表 2020年04月22日 0 点赞 0 评论 1174 浏览 评分:0.0
蓝桥杯算法训练-删除数组零元素-题解(C++代码),有链表和数组的做法 ```cpp#includeusingnamespacestd;typedefstructNode{intdata;structNode*next;};intlen=0;//创建链表voidcreate_list(Node*&q,intn){Node*p=q;p->next=NULL;intk;for 题解列表 2020年04月22日 0 点赞 0 评论 1161 浏览 评分:0.0
蓝桥杯2019年第十届真题-等差数列-题解(C++代码) ```cpp用数列最大值(max)减去最小值(min)除以数列中的最小差值(minc)#include#include#includeusingnamespacestd;intmain(){intn,min,max,minc;cin>>n;if(n<1){return0;}inta[n];for(in 题解列表 2020年04月22日 0 点赞 0 评论 1687 浏览 评分:9.9
[编程入门]自定义函数之数字后移-题解(C语言代码) #include#include#includevoidReverse(char*A,intn);voidinput_date(char*A,intn);intmain(){char*A;intm,n;scanf("%d",&n);A=(char*)malloc(n*sizeof(char));inp 题解列表 2020年04月22日 0 点赞 0 评论 1036 浏览 评分:0.0
蓝桥杯算法训练-前缀表达式-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ char a; int b,c; cin>>a; cin…… 题解列表 2020年04月22日 0 点赞 0 评论 1402 浏览 评分:0.0
[竞赛入门]简单的a+b-题解(C语言代码) 摘要: ```c #include int main() { int a, b; while (scanf("%d %d", &a, &b) == 2) …… 题解列表 2020年04月22日 0 点赞 0 评论 981 浏览 评分:0.0
蓝桥杯算法提高-输出二进制表示-题解(C++代码) 摘要:```cpp #include using namespace std; int main(){ int n; cin>>n; int i=7; int …… 题解列表 2020年04月22日 0 点赞 0 评论 1095 浏览 评分:0.0
发工资咯-题解(C语言代码) 摘要:```c #include int main() { int n,p,i,j,k,salary[6]={100,50,10,5,2,1};//纸币金额 scanf("%d",&n); …… 题解列表 2020年04月22日 0 点赞 0 评论 946 浏览 评分:0.0