二级C语言-进制转换(数组) 摘要:解题思路:不断%8将值放到数组中,最后逆序输出注意事项:if的取值范围,应该是小于8而不是小于等于8参考代码:#include<stdio.h>int main(){ int a[100],n,…… 题解列表 2022年03月11日 0 点赞 0 评论 613 浏览 评分:0.0
猴子吃桃问题,C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>/*猴子吃桃问题。猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个。 第二天早上又将剩下的桃子吃掉一半,又多吃一个。 以…… 题解列表 2022年03月11日 0 点赞 0 评论 1484 浏览 评分:0.0
优质题解 1096: Minesweeper 摘要:解题思路:说是黄金矿工,其实是扫雷的逻辑。没有什么算法上的难点,花时间的地方在于输出的数组里既有'*'又有数字,而我定义的数组是int型,所以一开始的想法是用static_cast把有…… 题解列表 2022年03月11日 0 点赞 1 评论 923 浏览 评分:8.7
1697: 数据结构-二叉链表存储的二叉树 题目源:[https://www.dotcpp.com/oj/problem1697.html](https://www.dotcpp.com/oj/problem1697.html)代码都给了,用java实现就行,操蛋java,真球日-代码```cppimportjava.util.Scanner; 题解列表 2022年03月11日 0 点赞 0 评论 837 浏览 评分:0.0
1507: 蓝桥杯算法提高VIP-去注释 摘要:解题思路:注意事项:参考代码:s=0 while True: try: st=input() if '/*' in st:   题解列表 2022年03月11日 0 点赞 0 评论 701 浏览 评分:8.0
我是废物!!!!!!!!!!!!!! ```cpp#includeusingnamespacestd;intn;constlonglongL=100002;intarr[L]={0};intmax_num=-1,min_num=100000;intmain(){inta;cin>>n;while(cin>>a){max_num=max(m 题解列表 2022年03月11日 0 点赞 0 评论 504 浏览 评分:0.0
蓝桥杯2013年第四届真题-核桃的数量-题解 摘要:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a<b) …… 题解列表 2022年03月11日 0 点赞 0 评论 702 浏览 评分:9.9
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 评论 682 浏览 评分:0.0
1518: 蓝桥杯算法提高VIP-寻找三位数 摘要:解题思路:注意事项:参考代码:st=[str(i) for i in range(1,10)] ls=[] for i in st: z=st[:] z.remove(i) …… 题解列表 2022年03月11日 0 点赞 0 评论 483 浏览 评分:0.0
最大公约数与最小公倍数模板 超简单超短代码 摘要:解题思路:最小公约数欧几里得算法gcd(a,b)=gcd(b,a mod b)最小公倍数是a*b//最小公约数注意事项:参考代码:def gcd(a, b): if b == 0: …… 题解列表 2022年03月11日 0 点赞 1 评论 599 浏览 评分:7.3