Monster Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3223 Accepted Submission(s): 969 Problem ...
分类:
其他好文 时间:
2020-05-04 19:24:54
阅读次数:
63
贪心算法题目很多本质上都是区间贪心,这次就主要讨论以区间为载体进行的贪心算法。 [toc] 我们以POJ上的这三道题目为例,分析一下这类型题目的主要思想,难度依次递进啦~ POJ 2376: Cleaning Shifts 题目 Description Farmer John is assignin ...
分类:
编程语言 时间:
2020-05-04 15:52:49
阅读次数:
75
题意:HDU6511 - 2019中山大学程序设计竞赛 思路:https://blog.csdn.net/jack_jxnu/article/details/89425942 到位了 1 bool a[1<<16][16]; 2 ll fac[16]; 3 bool b[1001]; 4 int n ...
分类:
其他好文 时间:
2020-05-04 10:36:45
阅读次数:
76
LeetCode题目 , 一篇英文技术文章 , 一个技术技巧 , 分享别人或自己观点 ...
分类:
其他好文 时间:
2020-05-04 00:44:37
阅读次数:
54
题意:http://acm.hdu.edu.cn/showproblem.php?pid=6513 你最多选两个矩阵反转,问你最后的情况数。 思路:https://www.cnblogs.com/asdfsag/p/10753244.html 很到位了。 const int N=(int)1e2+1 ...
分类:
其他好文 时间:
2020-05-03 18:48:10
阅读次数:
71
Headers Lables Each label can be up to 63 characters long, and an entire FQDN(fully qualified domain name) is limited to at most 255 (1 byte) characte ...
分类:
其他好文 时间:
2020-05-03 14:50:55
阅读次数:
63
http://acm.hdu.edu.cn/showproblem.php?pid=1042 代码 无结构体: #include<iostream> #include<string> #include<cstring> #include<algorithm> using namespace std; ...
分类:
其他好文 时间:
2020-05-02 12:16:52
阅读次数:
73
1 #include<iostream> 2 #include<string> 3 #include<queue> 4 using namespace std; 5 int k; 6 struct sortt{ 7 int pri; 8 int id; 9 friend bool operator< ...
分类:
其他好文 时间:
2020-05-01 23:44:44
阅读次数:
63
Area of Mushroom Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 4560 Accepted Submission(s): 100 ...
分类:
其他好文 时间:
2020-05-01 22:12:58
阅读次数:
72
题目:八数码 网址:http://poj.org/problem?id=1077 在一个3×3的网格中,1~8这8个数字和一个“X”恰好不重不漏地分布在这3×3的网格中。 例如: 在游戏过程中,可以把“X”与其上、下、左、右四个方向之一的数字交换(如果存在)。 我们的目的是通过交换,使得网格变为如下 ...
分类:
其他好文 时间:
2020-05-01 21:00:10
阅读次数:
103