1512: 蓝桥杯算法提高VIP-多项式输出 摘要:n=int(input()) a=list(map(int,input().split())) l=len(a) b=[] for i in range(len(a)): b.app…… 题解列表 2022年03月11日 0 点赞 0 评论 347 浏览 评分:0.0
我是废物!!!!!!!!!!!!!! 摘要: ```cpp #include using namespace std; int n; const long long L = 100002; int arr[L] = {0…… 题解列表 2022年03月11日 0 点赞 0 评论 327 浏览 评分:0.0
1697: 数据结构-二叉链表存储的二叉树 摘要:题目源: [https://www.dotcpp.com/oj/problem1697.html](https://www.dotcpp.com/oj/problem1697.html) 代码都…… 题解列表 2022年03月11日 0 点赞 0 评论 599 浏览 评分:0.0
猴子吃桃问题,C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>/*猴子吃桃问题。猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个。 第二天早上又将剩下的桃子吃掉一半,又多吃一个。 以…… 题解列表 2022年03月11日 0 点赞 0 评论 1296 浏览 评分:0.0
二级C语言-进制转换(数组) 摘要:解题思路:不断%8将值放到数组中,最后逆序输出注意事项:if的取值范围,应该是小于8而不是小于等于8参考代码:#include<stdio.h>int main(){ int a[100],n,…… 题解列表 2022年03月11日 0 点赞 0 评论 443 浏览 评分:0.0
C语言,不用库函数,标注较为清晰,冒泡排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//冒泡排序方法int main(){ int i,a[10]; for(i=0;i<3;i++)//现在数组里输入三个数 { sca…… 题解列表 2022年03月11日 0 点赞 0 评论 739 浏览 评分:0.0
输入输出--第二个数字 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[3]; for (int i = 0; i < 3; i+…… 题解列表 2022年03月11日 0 点赞 0 评论 331 浏览 评分:0.0
简单易懂--格式控制 摘要:解题思路:setiosflags 是包含在命名空间iomanip 中的C++ 操作符,该操作符的作用是执行由有参数指定区域内的动作;cout.setf跟setiosflags一样的,cout.prec…… 题解列表 2022年03月11日 0 点赞 0 评论 386 浏览 评分:0.0
输入输出--精度控制c++ 摘要:解题思路:和上一篇差不多注意事项:数据类型不要搞错,空格,参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){…… 题解列表 2022年03月11日 0 点赞 0 评论 348 浏览 评分:0.0
输入输出格式练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int i, n; while (cin >> n && n != 0…… 题解列表 2022年03月11日 0 点赞 0 评论 263 浏览 评分:0.0