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 评论 345 浏览 评分: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 评论 290 浏览 评分:0.0
最大公约数与最小公倍数模板 超简单超短代码 摘要:解题思路:最小公约数欧几里得算法gcd(a,b)=gcd(b,a mod b)最小公倍数是a*b//最小公约数注意事项:参考代码:def gcd(a, b): if b == 0: …… 题解列表 2022年03月11日 0 点赞 1 评论 471 浏览 评分:7.3
编写题解 1052: [编程入门]链表合并 摘要:解题思路:注意事项:参考代码://// Created by ch'li'sen on 2022/3/8.//#include<iostream>#include "algorithm…… 题解列表 2022年03月11日 0 点赞 0 评论 443 浏览 评分:0.0
STL_蓝桥杯2020年第十一届省赛真题-平面切分 摘要:在一个很多直线的平面上添加一条直线y,可以分割出y与其他所有直线的交点 + 1个平面 ;注意事项: 在for循环中前提条件有两个时for(i = 0, it = line.begin(); it !…… 题解列表 2022年03月10日 0 点赞 0 评论 812 浏览 评分:9.9
打印图案--简单 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ cout << " *" << endl; …… 题解列表 2022年03月10日 0 点赞 0 评论 346 浏览 评分:0.0
圆的面积--简单 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#define pi 3.1415926using namespace std;int main()…… 题解列表 2022年03月10日 0 点赞 0 评论 333 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和python 摘要:解题思路:不用while,用for注意事项:参考代码:N=int(input())c,d=2,1sn=a=c/dfor i in range(1,N): c,d=c+d,c a=c/d …… 题解列表 2022年03月10日 0 点赞 0 评论 895 浏览 评分:9.9
优质题解 1672: 迷宫问题 摘要:解题思路:主要考察BFS的思想,首先输入了一组迷宫的数据后,应该遍历一次记录起点和终点的位置。然后从起点所在的格子开始,朝着四个方向的相邻格子访问,如果那个格子不在界外(确保安全可以在最外围加一圈&#…… 题解列表 2022年03月10日 0 点赞 0 评论 906 浏览 评分:9.0
2009: 第一个带类的C++程序 摘要:C++ 类的简单运用。#include <bits/stdc++.h> using namespace std; class time{ private: int …… 题解列表 2022年03月10日 0 点赞 0 评论 321 浏览 评分:0.0