蓝桥杯算法提高VIP-输入输出格式练习 题解(c++语言) 摘要:解题思路:按题目格式输入输出就可以了。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a;double b;char ch;int…… 题解列表 2022年05月17日 0 点赞 0 评论 194 浏览 评分:10.0
[编程入门]C语言循环移位 摘要:解题思路:注意事项:参考代码://程序名:新的C++程序//作者: #include<iostream>#include<fstream>#include<algorithm>using namesp…… 题解列表 2022年05月19日 0 点赞 0 评论 185 浏览 评分:10.0
最长不含重复字符的子字符串 (Java代码) 摘要:import java.util.Scanner; public class Main { public static void main(String[] args) { Sca…… 题解列表 2022年06月12日 1 点赞 0 评论 147 浏览 评分:10.0
1315: 田忌赛马 摘要:解题思路:1、先将田忌和齐王最快的马进行比较如果田忌的马更快则先赢一局2、如果田忌最快的马比齐王慢,则比较两者最慢的马,如果田忌的快则派出最慢的马赢下一局。3、如果1、2都不成立,则比较田忌最慢的马和…… 题解列表 2022年08月12日 0 点赞 0 评论 564 浏览 评分:10.0
蓝桥杯2016年第七届真题-路径之谜(DFS) 摘要:```cpp #include using namespace std; const int N = 21; int topCount[N]; int leftCount[N]; bo…… 题解列表 2022年08月16日 1 点赞 0 评论 291 浏览 评分:10.0
数组乘常数—2^(n+1)-2 摘要:解题思路:汉罗双塔的次数为2*2(^(n)-1);注意事项:参考代码:#include <stdio.h> #include <malloc.h> #include <string.h> int…… 题解列表 2022年09月13日 0 点赞 0 评论 278 浏览 评分:10.0
优质题解 【C语言】数字游戏:从暴力循环到精简代码 - DotcppXF 摘要:【解题思路】 将题目描述的游戏规则转化为数学规律问题,不断优化代码,解决【时间超限】和【数据超范围】两大难点。【1】常规解法(暴力循环求解) ① 直接按题目描述的规则写代码…… 题解列表 2022年10月04日 3 点赞 5 评论 1394 浏览 评分:10.0
实数的打印 摘要: #include #include #include using namespace std; int main() { floa…… 题解列表 2022年10月12日 2 点赞 0 评论 184 浏览 评分:10.0
[编程入门]矩阵对角线求和,最容易理解的解法,非常暴力 摘要:解题思路:注意事项:没有丝毫含金量参考代码:x=list(map(int,input().split()))y=list(map(int,input().split()))z=list(map(int…… 题解列表 2022年10月23日 1 点赞 0 评论 843 浏览 评分:10.0
完数的判断(Python) 摘要:解题思路:注意事项:要保证时间限制的情况下不能通过暴力求解参考代码:N = int(input())for i in range(2, N) : lst_factors = [1] lim…… 题解列表 2022年11月04日 1 点赞 0 评论 311 浏览 评分:10.0