题解列表
自定义函数之数字分离
摘要:解题思路:题目求只是四位数注意事项:参考代码:#include<stdio.h>int main(){ int a; scanf("%d",&a); if(a>=1000&&a<=1000……
编写题解 1040: [编程入门]实数的打印(python 超短)
摘要:#只要理解代码的每个部分在干什么就可以了user = float(input())
for i in range(1, 4):
print(("{:6.2f} ".format(user)……
编写题解 1486: 蓝桥杯算法提高VIP-一元一次方程
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double a,b; ……
编写题解 1509: 蓝桥杯算法提高VIP-图形输出
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ cout<<" X | X | X "<<endl; co……
信息学奥赛一本通T1252-走迷宫 —— Python首发 BFS广度优先搜索 (Python代码)
#####先上代码:```pythonfromqueueimportQueueasQuclassBFSNode():#节点def__init__(self,x,y,step):#创建三个节点内容self.x,self.y=x,y#x和y对应着bfs中的节点位置self.step=step#step为步
编写题解 1073: 弟弟的作业(python 简单易懂)
摘要:score = 0
while True:
try:
user = input().split("=")
if user[1] == "?&quo
蓝桥杯2016年第七届真题-最大比例
解题思路:注意事项:参考代码:frommathimport*n=int(input())l=list(map(int,input().split()))s=set(l)l=list(s)l.sort()ans=[]foriinrange(len(l)-1):x=l[i+1]/l[i]a=gcd(l[i
1575: 蓝桥杯算法提高VIP-递归倒置字符数组
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
void digui(char *str, int m, int n)
{
if(n <= m)
{……
编写题解 1265: 青年歌手大奖赛_评委会打分
摘要:解题思路:利用STL中deque容器,(双端数组)。方便头删尾删。注意事项:记得每一次输出完清空容器。参考代码:#include<iostream>using namespace std;#inclu……