蓝桥杯基础练习VIP-时间转换(5行代码) 摘要:解题思路:用好求余可以很快解决这种转换问题注意事项:参考代码:t = int(input())a = t // 3600 # 时b = t % 3600 // 60 # 分c = t % 60 …… 题解列表 2022年08月02日 0 点赞 0 评论 360 浏览 评分:0.0
菜鸟级别-p(水仙花数判断) 摘要:解题思路:首先了解什么是水仙花数,进而获取一个三位数的每一项数字,最后进行立方和判断注意事项:参考代码:#include<stdio.h>int main(){int a;scanf("%d\n",&…… 题解列表 2022年08月02日 0 点赞 0 评论 353 浏览 评分:0.0
#C++1554——蓝桥杯算法提高VIP-素数求和(构建素数表) 摘要:解题思路: 构建素数表除0,1两个元素外,其余默认标记为0,即素数;用素数去构造非素数,标记为1;参考代码:#include<iostream> #include <cmath> using na…… 题解列表 2022年08月02日 0 点赞 0 评论 389 浏览 评分:0.0
#C++ 1895——蓝桥杯算法提高VIP-队列操作 摘要:参考代码:#include <iostream> #include <queue> using namespace std; int main() { int n; queue<int…… 题解列表 2022年08月02日 0 点赞 0 评论 383 浏览 评分:0.0
蓝桥杯2019年第十届国赛真题-最优包含(动态规划) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int dp[1005][1005] = {0};int main(){ st…… 题解列表 2022年08月02日 0 点赞 0 评论 536 浏览 评分:0.0
#C++1557——蓝桥杯算法提高VIP-聪明的美食家(序列动态规划) 摘要:参考代码:#include<iostream> using namespace std; int main() { int arr[1005],dp[1005]; int …… 题解列表 2022年08月02日 0 点赞 0 评论 367 浏览 评分:0.0
#C++1911——蓝桥杯算法提高VIP-P1001(大数相乘) 摘要:参考代码:#include <iostream> #include <cstring> using namespace std; char a[20],b[20]; int aa[20],b…… 题解列表 2022年08月03日 0 点赞 0 评论 596 浏览 评分:0.0
蓝桥杯基础练习VIP-FJ的字符串 摘要:解题思路:利用函数比较好写注意事项:参考代码:#include<stdio.h>void f(int n){ char c[]={'A','B','C'…… 题解列表 2022年08月03日 0 点赞 0 评论 389 浏览 评分:0.0
编写题解 1002: [编程入门]三个数最大值(python) 摘要:解题思路:参考菜鸟python的max()函数,百度python如何输入三个数注意事项:参考代码:a,b,c=map(int,input().split());print(max(a,b,c));…… 题解列表 2022年08月03日 0 点赞 0 评论 599 浏览 评分:0.0
#C++1182——人民币问题(循环递归) 摘要:解题思路: 用for循环遍历所有可能的情况参考代码:#include <iostream> #include <algorithm> using namespace std; typedef l…… 题解列表 2022年08月03日 0 点赞 0 评论 304 浏览 评分:0.0