- 博客(17)
- 问答 (1)
- 收藏
- 关注
原创 POJ 3728 The merchant(LCA+DP)
The merchant Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 5160 Accepted: 1776 DescriptionThere are N cities in a country, and there is one and only one simple path between eac
2017-09-18 15:09:09 504
原创 HDU 6196 happy happy happy(卡时剪枝)
happy happy happyTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 299 Accepted Submission(s): 86Problem Description Today, Bob plays with a
2017-09-12 15:56:57 512
原创 POJ 1991 Turning in Homework(由大推小的区间DP)
Turning in Homework Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 1172 Accepted: 519 DescriptionBessie must turn in her homework for her C classes (1 <= C <= 1,000) at Moo U so
2017-09-09 21:15:55 788
原创 2017乌鲁木齐赛区网络赛 I Colored Graph(完全图边定向构造)
I: Colored Graph time limit 1000ms memory limit 131072KB In graph theory, graph colouring is a special case of graph labelling. It is an assignment of labels traditionally called colours to edges
2017-09-09 18:26:32 1439
原创 Codeforces 818F Level Generation(三分)
F. Level Generation time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output Ivan is developing his own computer game. Now he tries to create some l
2017-09-08 15:11:13 752
原创 BZOJ 2597 [Wc2007]剪刀石头布(凸费用流问题)
2597: [Wc2007]剪刀石头布Time Limit: 20 Sec Memory Limit: 128 MBSec Special Judge Submit: 1464 Solved: 663 [Submit][Status][Discuss] Description在一些一对一游戏的比赛(如下棋、乒乓球和羽毛球的单打)中,我们经常会遇到A胜过B,B胜过C而C又胜过A的有趣情况,
2017-09-07 18:55:04 569
原创 POJ 3680 Intervals(区间覆盖建图)
Intervals Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 8549 Accepted: 3641 DescriptionYou are given N weighted open intervals. The ith interval covers (ai, bi) and weighs wi.
2017-09-07 14:40:43 566
原创 Codeforces 846E Chemistry in Berland(防爆long long)
E. Chemistry in Berland time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Igor is a post-graduate student of chemistry faculty in Berland St
2017-09-07 10:28:04 572
原创 Codeforces 846D Monitor(二维前缀和)
D. Monitor time limit per test2 seconds memory limit per test256 megabytes inputstandard input outputstandard output Recently Luba bought a monitor. Monitor is a rectangular matrix of size n × m.
2017-09-06 21:16:27 770
原创 洛谷OJ 1155 双栈排序(二分图染色)
题目描述Tom最近在研究一个有趣的排序问题。如图所示,通过2个栈S1和S2,Tom希望借助以下4种操作实现将输入序列升序排序。操作a如果输入序列不为空,将第一个元素压入栈S1操作b如果栈S1不为空,将S1栈顶元素弹出至输出序列操作c如果输入序列不为空,将第一个元素压入栈S2操作d如果栈S2不为空,将S2栈顶元素弹出至输出序列如果一个1~n的排列P可以通过一系列操作使得输出序列为1,2,…,(n-1)
2017-09-06 16:50:44 560 1
原创 51Nod 1693 水群(打表确定转移范围优化)
1693 水群 基准时间限制:0.4 秒 空间限制:524288 KB 分值: 160 难度:6级算法题 收藏 关注 总所周知,水群是一件很浪费时间的事,但是其实在水群这件事中,也可以找到一些有意思的东西。 比如现在,bx2k就在研究怎样水表情的问题。 首先,bx2k在对话框中输入了一个表情,接下来,他可以进行三种操作。 第一种,是全选复制,把所有表情全选然后复制到剪贴板中。 第二种,
2017-09-06 14:23:51 453
原创 HDU 2454 Degree Sequence of Graph G(Heavel定理)
Degree Sequence of Graph GTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2717 Accepted Submission(s): 1168Problem Description Wang Haiyang
2017-09-06 09:47:42 1049
原创 HDU 6187 Destroy Walls(对偶图最小生成树)
Destroy WallsTime Limit: 8000/4000 MS (Java/Others) Memory Limit: 132768/132768 K (Java/Others) Total Submission(s): 236 Accepted Submission(s): 96Problem Description Long times ago, there are
2017-09-06 08:58:06 1269 1
原创 HDU 6184 Counting Stars(无向图三元环计数)
Counting StarsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 459 Accepted Submission(s): 115Problem Description Little A is an astronomy l
2017-09-05 20:49:24 1730 1
原创 HITOJ 2739 The Chinese Postman Problem(有向带权图上的中国邮递员问题)
The Chinese Postman Problem Source : bin3 Time limit : 1 sec Memory limit : 64 M Submitted : 530, Accepted : 177 A Chinese postman is assigned to a small town in China to deliver letters. In t
2017-09-05 08:58:52 4823
原创 最小度限制生成树
定义 在一张无向带权图中,找出一棵生成树,使得某个特定结点的度数不超过KK或者恰好等于KK的,并且权值和最小。求解算法 首先我们对不与特殊结点相连的边求最小生成树,得到几个连通分量。然后找出每个连通分量到特殊结点的最短的边,把这条边添加到生成树中,这样我们就得到了一个度限制为连通分量数的最小生成树。如果有连通分量到特殊结点没有边,则说明无法构成生成树。如果连通分量数大于KK,则说明无法在度数限制
2017-09-03 09:09:27 1124
原创 HDU 4899 Hero meet devil(DP套DP)
Hero meet devilTime Limit: 16000/8000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 692 Accepted Submission(s): 338Problem DescriptionThere is
2017-09-01 11:08:30 504
空空如也
Xcode无法编译C++求解决
2017-06-20
TA创建的收藏夹 TA关注的收藏夹
TA关注的人