信息学奥赛一本通T1252-走迷宫 —— Python首发 BFS广度优先搜索 (Python代码) 摘要:##### 先上代码: ```python from queue import Queue as Qu class BFSNode(): # 节点 def __init__(sel…… 题解列表 2022年04月18日 0 点赞 2 评论 897 浏览 评分:10.0
编写题解 1073: 弟弟的作业(python 简单易懂) 摘要:score = 0 while True: try: user = input().split("=") if user[1] == "?&quo 题解列表 2022年04月18日 0 点赞 0 评论 832 浏览 评分:9.3
蓝桥杯2016年第七届真题-最大比例 摘要:解题思路:注意事项:参考代码:from math import *n=int(input())l=list(map(int,input().split()))s=set(l)l=list(s)l.so…… 题解列表 2022年04月18日 0 点赞 0 评论 554 浏览 评分:9.9
1575: 蓝桥杯算法提高VIP-递归倒置字符数组 摘要:解题思路:注意事项:参考代码:#include <stdio.h> void digui(char *str, int m, int n) { if(n <= m) {…… 题解列表 2022年04月18日 0 点赞 0 评论 228 浏览 评分:0.0
编写题解 1265: 青年歌手大奖赛_评委会打分 摘要:解题思路:利用STL中deque容器,(双端数组)。方便头删尾删。注意事项:记得每一次输出完清空容器。参考代码:#include<iostream>using namespace std;#inclu…… 题解列表 2022年04月18日 0 点赞 0 评论 488 浏览 评分:9.9
因式分解,数学是算法的基石,学好数理化,走遍天下都不怕 摘要:解题思路:用初中所学知识因式分解来做,如果按正常for循环暴力累乘的话肯定会超时注意事项:数据范围给的是20万,注意不要开小了参考代码:#include <iostream> using names…… 题解列表 2022年04月18日 0 点赞 2 评论 1790 浏览 评分:9.9
只会暴力,在cmd窗口输入calc调出计算器一个一个算 摘要:#include <iostream> using namespace std; int main() { string s; cin>>s; if(s[1]==&…… 题解列表 2022年04月18日 0 点赞 0 评论 541 浏览 评分:8.0
编写题解 1477: 字符串输入输出函数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<string>void printnum(){ cout<<"plea…… 题解列表 2022年04月18日 0 点赞 0 评论 265 浏览 评分:0.0
编写题解 1402: 简单的字符串 摘要:解题思路:字符数组用来作比较,数组用来计数。记得加判断注意事项:参考代码:#include<iostream>using namespace std;#include<string>int main(…… 题解列表 2022年04月18日 0 点赞 0 评论 353 浏览 评分:0.0
同因查找-while循环(C语言代码) 摘要:解题思路:while循环,从10开始到1000,依次输出符合值。注意事项:范围大小(10-1000)参考代码:#include<stdio.h>int main(){ int n=10; scanf(…… 题解列表 2022年04月18日 0 点赞 0 评论 767 浏览 评分:9.9