01背包问题的变形式 摘要:```c package 背包问题; import java.util.Scanner; public class 背包与魔法_01升级版 { private static int …… 题解列表 2023年04月07日 0 点赞 1 评论 464 浏览 评分:9.0
最笨的方法 摘要:解题思路:利用两个数组来分别存放每个单词的大小和对应的句子中每个单词开始的元素下标注意事项:每个单词的元素下标记得从0开始参考代码:int main(){ char str[2000] = { …… 题解列表 2023年04月07日 0 点赞 1 评论 394 浏览 评分:9.9
典中典---抽象背包 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main {public static void main(String[] args) throws E…… 题解列表 2023年04月07日 0 点赞 0 评论 208 浏览 评分:0.0
2604: 蓝桥杯2021年第十二届省赛真题-砝码称重(Java有set去重方法也有dp动态方法)要先看解释再看图 摘要:解题思路:注意事项: 将砝码独立来看,在当前砝码称出重量x的情况下,对于砝码i都有三种操作:x+砝码i的重量(放同侧)x-砝码i的重量(放异侧)x(不放)显然前面两种操作才有可能产生不同的重量。…… 题解列表 2023年04月07日 0 点赞 1 评论 515 浏览 评分:9.9
无脑暴力就行 摘要:解题思路:时间复杂度O(nm),这样的数据范围下直接暴力就行注意事项:参考代码://表示颜色的数字不超过10^5的正数,1<=n<=10^4,1<=m<=10^4。#include<bits/stdc…… 题解列表 2023年04月07日 0 点赞 0 评论 270 浏览 评分:9.9
#C++1711—— 数据结构-有序表的折半查找 摘要:***********************************************************************①假如要查找数(temp)的位置为5;//为什么left=…… 题解列表 2023年04月07日 0 点赞 0 评论 379 浏览 评分:9.9
刷題記錄,新手勿怪 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//定義結構體DATEstruct DATE{ int year; int month; int day;};int main(void…… 题解列表 2023年04月07日 0 点赞 0 评论 200 浏览 评分:0.0
素数回文 C++ 摘要: #### 解题思路: #### 参考代码: ```cpp #include using namespace std; bool is_prime(int n) { //判断素数 …… 题解列表 2023年04月07日 0 点赞 0 评论 240 浏览 评分:0.0
送分题素数 C++ 摘要: #### 解题思路: #### 参考代码: ```cpp #include #include using namespace std; int prime[100]; bool …… 题解列表 2023年04月07日 0 点赞 0 评论 270 浏览 评分:0.0
开关灯 C简单易懂 摘要:#### 解题思路: 用数组模拟开关灯 #### 参考代码 ```cpp #include #include #define maxn 5010 int a[maxn]; int …… 题解列表 2023年04月07日 0 点赞 0 评论 344 浏览 评分:0.0