C语言训练-求车速-题解(C++语言代码) 分享个和大多数人不一样的方法 摘要:分享个和大多数人不一样的方法 #include using namespace std; int main(){ int n=95859,km=0;…… 题解列表 2019年09月14日 0 点赞 0 评论 1251 浏览 评分:0.0
[编程入门]迭代法求平方根 (C++代码) 摘要:使用循环输入数的时候,注意需将参数赋值写到循环里面 ```cpp #include #include using namespace std; int main() { double …… 题解列表 2019年09月14日 0 点赞 0 评论 958 浏览 评分:0.0
A_利用结构体——有序线性表的有序合并-题解(C语言代码) 摘要: //已知线性表 LA 和 LB 中的数据元素按值非递减有序排列,现要求将 LA 和 LB 归并为一个新的线性表 LC, // 且 LC 中的数据元素仍然按值非递减有序排列。例如,设L…… 题解列表 2019年09月15日 0 点赞 0 评论 1156 浏览 评分:0.0
C语言训练-求PI*-题解(C语言代码) 摘要:```c #include int main(){ double i=0,pi=0;/*因为几乎都是double类型,得把i定义成double才更好的保持精度 */ int flag,nu…… 题解列表 2019年09月15日 0 点赞 0 评论 961 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目-题解(C语言代码) 摘要:#include using namespace std; int main() { int a,b; cin >> a >> b; cout …… 题解列表 2019年09月15日 0 点赞 0 评论 921 浏览 评分:0.0
蓝桥杯2013年第四届真题-剪格子-题解(C++描述,简单易懂,可参考啊哈算法走迷宫) 摘要:#include #include using namespace std; int n,m,a[10][10],book[10][10],sum,ans,q=1,s[10],l;//q代表步数…… 题解列表 2019年09月15日 0 点赞 0 评论 1435 浏览 评分:0.0
C语言训练-亲密数-题解(C语言代码) 摘要:```c #include int main() { int x,y,a=0,b[3001]; for (x = 2; x < 3000; x++) {//把3000以内的数…… 题解列表 2019年09月15日 0 点赞 0 评论 777 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(C语言代码) 摘要:我想知道哪里错了?运行的出来,结果也是对的,为什么老是判定错误???? #include int main(){ int m,n,temp; printf("请输入想要输入…… 题解列表 2019年09月15日 0 点赞 0 评论 824 浏览 评分:0.0
[编程入门]二维数组的转置-题解(C++代码) 摘要:行列交换输出就可以了 ```cpp #include using namespace std; int main() { int i,j; int a[3][3]; for(i=…… 题解列表 2019年09月16日 0 点赞 0 评论 760 浏览 评分:0.0
字符逆序-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main() { char str[100]; gets(st…… 题解列表 2019年09月16日 0 点赞 0 评论 1030 浏览 评分:0.0