明明的随机数——C语言代码 摘要:####解题思路 先去重,再排序 ####注意事项 去重时下标要后退一位,防止三个重复数字!!! - #### 代码如下 ```c #include int main() …… 题解列表 2022年03月16日 0 点赞 0 评论 565 浏览 评分:0.0
简单遍历解决 摘要:解题思路:即寻找两正整数a,b最大无法组合的数。已知a*b一定可以被组合,从a*b开始往小搜索即可。注意事项:参考代码:#include<iostream>using namespace std;in…… 题解列表 2022年03月16日 0 点赞 0 评论 543 浏览 评分:0.0
HashMap的应用 摘要:解题思路:利用hashmap键值对 ,判断键是否存在对应的字符 ,不存在则初始化,值为1,表示第一次出现;存在的话值加一;最后遍历输出。注意事项: map.containsKey()判断键是否存在;…… 题解列表 2022年03月16日 0 点赞 0 评论 541 浏览 评分:9.9
编写题解 2074: [STL训练]A+B 摘要:解题思路:注意事项:参考代码:while True: try: a,b=map(str,input().split()) print(int(a.repl…… 题解列表 2022年03月16日 0 点赞 0 评论 623 浏览 评分:9.9
01背包问题!!! 摘要:```cpp #include using namespace std; const int L = 5001; int n, m; int v[L], w[L]; int dp[L]…… 题解列表 2022年03月16日 0 点赞 0 评论 470 浏览 评分:0.0
01背包问题 动态规划 摘要:```cpp #include using namespace std; const int L = 5000 + 50; int n, m; int v[L], w[L]; int dp…… 题解列表 2022年03月16日 0 点赞 0 评论 480 浏览 评分:0.0
完全背包问题,动态规划!! 摘要:其实和01背包问题差别不大,01背包每件物品只能选一个,多重背包每件物品在不超过背包体积的条件下可以选择无限个! ```cpp #include using namespace std; …… 题解列表 2022年03月16日 0 点赞 0 评论 505 浏览 评分:9.9
多重背包 动态规划 摘要:```cpp #include using namespace std; const int L = 5000 + 50; int n, m; int v[L], w[L], q[L]; …… 题解列表 2022年03月16日 0 点赞 0 评论 488 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-单词分析 摘要:水题 ```cpp #include #include #include using namespace std; string s; int a[26] = { 0 }; int m…… 题解列表 2022年03月16日 0 点赞 0 评论 711 浏览 评分: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 评论 507 浏览 评分:9.9