题目链接:https://vjudge.net/problem/HDU-2181#author=0 思路:简单搜索,直接dfs即可 #include <bits/stdc++.h> using namespace std; typedef long long ll; int a[30][30],b[ ...
分类:
其他好文 时间:
2020-09-17 20:39:59
阅读次数:
31
Problem LeetCode Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where t ...
分类:
编程语言 时间:
2020-09-17 20:29:16
阅读次数:
30
题:https://codeforces.com/contest/1404/problem/E 题意:给定n*m矩阵‘#’表示要用砖头覆盖,‘.’表示不能被覆盖,只有1*x的砖头(x可任意),问在砖头不相互覆盖的前提下,最少用几块砖头能按规定把矩阵覆盖 分析: 假设一开始全部都是1*1的砖头去覆盖, ...
分类:
其他好文 时间:
2020-09-17 20:08:46
阅读次数:
22
题目链接 https://pintia.cn/problem-sets/994805342720868352/problems/994805345078067200 题解 题目要求 假设二叉树中所有结点的值都是互异的正整数,给定二叉树的先序和后序遍历,请输出该树后序遍历的第一个数字。 输入 N:正整 ...
分类:
其他好文 时间:
2020-09-17 18:55:01
阅读次数:
33
差一步想出来的考试题(以及码农题),用到了曼哈顿切比雪夫的转化。 ...
分类:
其他好文 时间:
2020-09-17 18:15:12
阅读次数:
24
17. 电话号码的字母组合 排列题目,很容易想到回溯。下面是ac代码。 class Solution { private: vector<string> vstrs = {"","","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"}; public ...
分类:
其他好文 时间:
2020-09-17 17:29:41
阅读次数:
23
题目描述: This is the first problem for test. Since all we know the ASCII code, your job is simple: Input numbers and output corresponding messages. 输入: T ...
分类:
其他好文 时间:
2020-09-17 17:23:30
阅读次数:
51
HDU6314 Matrix Problem Description Samwell Tarly is learning to draw a magical matrix to protect himself from the White Walkers. the magical matrix is ...
分类:
其他好文 时间:
2020-09-17 17:11:07
阅读次数:
24
题目:https://pintia.cn/problem-sets/1268384564738605056/problems/1278908289143574528 将一系列给定数字插入一个初始为空的小顶堆H[]。随后对任意给定的下标i,打印从H[i]到根结点的路径。 输入格式: 每组测试第1行包含 ...
分类:
其他好文 时间:
2020-09-17 15:45:45
阅读次数:
22
题目:https://pintia.cn/problem-sets/1268384564738605056/problems/1278908289143574529 We have a network of computers and a list of bi-directional connect ...
分类:
其他好文 时间:
2020-09-17 15:44:44
阅读次数:
21