1446: 蓝桥杯2013年第四届真题-核桃的数量 摘要:解题思路:注意事项:参考代码:a, b, c = map(int, input().split()) i = 0 while True: i += 1 su = max(a, …… 题解列表 2022年03月16日 0 点赞 0 评论 464 浏览 评分:9.9
编写题解 2072: [STL训练]寻梦 摘要:解题思路:注意事项:参考代码:n=int(input()) for i in range(n): strg_1=input() strg_2=input().strip() …… 题解列表 2022年03月16日 0 点赞 0 评论 725 浏览 评分:9.9
[编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:三个函数注意事项:参考代码:#include<stdio.h>int gongyueshu(int f,int g){ int l,o; while(f%g!=0) { …… 题解列表 2022年03月16日 0 点赞 0 评论 674 浏览 评分:9.9
HashMap的应用 摘要:解题思路:利用hashmap键值对 ,判断键是否存在对应的字符 ,不存在则初始化,值为1,表示第一次出现;存在的话值加一;最后遍历输出。注意事项: map.containsKey()判断键是否存在;…… 题解列表 2022年03月16日 0 点赞 0 评论 670 浏览 评分:9.9
编写题解 2074: [STL训练]A+B 摘要:解题思路:注意事项:参考代码:while True: try: a,b=map(str,input().split()) print(int(a.repl…… 题解列表 2022年03月16日 0 点赞 0 评论 783 浏览 评分:9.9
完全背包问题,动态规划!! 其实和01背包问题差别不大,01背包每件物品只能选一个,多重背包每件物品在不超过背包体积的条件下可以选择无限个!```cpp#includeusingnamespacestd;constintL=5000+50;intn,m;intv[L], 题解列表 2022年03月16日 0 点赞 0 评论 634 浏览 评分:9.9
蓝桥杯2020年第十一届省赛真题-单词分析 水题```cpp#include#include#includeusingnamespacestd;strings;inta[26]={0};intm=-1;intmain(){cin>>s;intj;for(inti=0;i 题解列表 2022年03月16日 0 点赞 0 评论 821 浏览 评分:9.9
蓝桥杯基础练习VIP-报时助手(JAVA题解) 摘要:解题思路:把m分成两种情况的数据:第一种m>=0&&m<=20把该块数字的英文用一个字符串数组存储;第二种m>20&&m<60使用switch(m/10)判断十位,再用strs[m%10]输出各位把h…… 题解列表 2022年03月16日 0 点赞 0 评论 637 浏览 评分:9.9
动态规划 线性dp ```cpp#includeusingnamespacestd;intINT=1e9;constintL=1000;intn;intdp[L][L],arr[L][L],kt[L][L];intans=0;intmain(){cin>>n;for(inti=1;iarr[i][j];}}for(int 题解列表 2022年03月16日 0 点赞 0 评论 715 浏览 评分:9.9
树状数组(注意身高为0) 摘要:```cpp #include using namespace std; typedef long long ll; #define lowbit(x) ((x)&-(x)) const i…… 题解列表 2022年03月16日 0 点赞 0 评论 576 浏览 评分:9.9