08 2016 档案
摘要:总结这一个暑假呐,就是被DP虐哭了的一个月,这TM就是一门玄学,没有一定的脑洞,怎么可能学好DP,用抽象的思维将一个大问题拆分成多个阶段决策问题,然后表示每个阶段的状态,再在每个状态之间进行决策的选择。题做多了之后才发现,DP的过程其实就是将状态你前面记录的过程记忆下来,然后后面你进行决策的时候以这
阅读全文
摘要:Apple Tree Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9808 Accepted: 3260 Description Wshxzt is a lovely girl. She likes apple very mu
阅读全文
摘要:Choosing Capital for Treeland time limit per test 3 seconds time limit per test memory limit per test 256 megabytes memory limit per test input standa
阅读全文
摘要:E - Pairs Description standard input/outputStatements In the secret book of ACM, it’s said: “Glory for those who write short ICPC problems. May they l
阅读全文
摘要:C - OCR Description standard input/outputStatements Optical Character Recognition (OCR) is one of the most famous fields of Artificial Intelligence. T
阅读全文
摘要:Weird Cryptography Description standard input/outputStatements Khaled was sitting in the garden under an apple tree, suddenly! , well... you should gu
阅读全文
摘要:A - Time Description standard input/outputStatements A plane can go from city X to city Y in 1 hour and 20 minutes. However, when it returns from city
阅读全文
摘要:TELE Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4863 Accepted: 2673 Description A TV-network plans to broadcast an important football
阅读全文
摘要:Tree2cycle Time Limit: 15000/8000 MS (Java/Others) Memory Limit: 102400/102400 K (Java/Others)Total Submission(s): 2161 Accepted Submission(s): 508 Pr
阅读全文
摘要:Computer Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5925 Accepted Submission(s): 2979 Proble
阅读全文
摘要:近一周的复习,用一个睡不醒就能概括,训练赛没状态,学新知识老是不明白,以前学的知识没学扎实,训练赛的一个模拟题,STL map+vector,竟然忘了map怎么用了......真是唉......树状DP方面,建树的几种方式基本了解,但是这都是表面的东西,重要的状态转移方程还是很难想,做一个题很矛盾,
阅读全文
摘要:Cleaner RobotCrawling in process... Crawling failed Time Limit:2000MS Memory Limit:524288KB 64bit IO Format:%I64d & %I64u Submit Status Description In
阅读全文
摘要:LotteryCrawling in process... Crawling failed Time Limit:2000MS Memory Limit:524288KB 64bit IO Format:%I64d & %I64u Submit Status Description Input Ou
阅读全文
摘要:Email AliasesCrawling in process... Crawling failed Time Limit:2000MS Memory Limit:524288KB 64bit IO Format:%I64d & %I64u Submit Status Description In
阅读全文
摘要:Holiday's Accommodation Time Limit: 8000/4000 MS (Java/Others) Memory Limit: 200000/200000 K (Java/Others)Total Submission(s): 2925 Accepted Submissio
阅读全文
摘要:Bear and Prime 100Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice
阅读全文
摘要:Vanya and LabelCrawling in process... Crawling failed Time Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice _ u
阅读全文
摘要:Description Vanya smashes potato in a vertical food processor. At each moment of time the height of the potato in the processor doesn't exceed h and t
阅读全文
摘要:#include #include #define Maxn 200 using namespace std; struct edge{int from,to,weight,next;}e[Maxn];//存储边信息的结构体 int head[Maxn];//起点为下标存储(e中边的位置) int main() { int edges;//边数 memset(...
阅读全文
摘要:Starship Troopers Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 17498 Accepted Submission(s):
阅读全文
摘要:Anniversary party Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6926 Accepted: 3985 Description There is going to be a party to celebrate
阅读全文
摘要:Barbara Bennett's Wild Numbers Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 3153 Accepted: 1143 Description A wild number is a string co
阅读全文
摘要:windy数Crawling in process... Crawling failed Time Limit:1000MS Memory Limit:165888KB 64bit IO Format:%lld & %llu Submit Status Description Input Outpu
阅读全文
摘要:Beautiful numbersCrawling in process... Crawling failed Time Limit:4000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Descriptio
阅读全文
摘要:Joint StacksCrawling in process... Crawling failed Time Limit:4000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 581
阅读全文
摘要:B-number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5008 Accepted Submission(s): 2872 Proble
阅读全文
摘要:X mod f(x) Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2792 Accepted Submission(s): 1101 Prob
阅读全文
摘要:Bomb Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total Submission(s): 15102 Accepted Submission(s): 5452 Problem
阅读全文
摘要:不要62 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 34510 Accepted Submission(s): 12484 Problem
阅读全文
摘要:B - Chris and Road Crawling in process... Crawling failed Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Practice
阅读全文
摘要:F - Mishka and trip Sample Output Hint In the first sample test: In Peter's first test, there's only one cycle with 1 vertex. First player cannot make
阅读全文
摘要:A - Spider Man Crawling in process... Crawling failed Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64u Submit Status Description
阅读全文
摘要:借鉴:http://www.cnblogs.com/xz816111/p/4809913.html
阅读全文
摘要:看了一个多星期状压DP,总算有点明白,大概可以分为两种:数据是在矩阵中的,数据是线性的,在矩阵中的一般就是排兵布阵这一种的,还有一种线性结构中给定条件让你求最大权值,比如求最大权值路线,TSP问题等,前一种的状态比较好想,一般就是有了第一行的状态然后推下一行的状态,i行的状态一般由i-1行的状态推出
阅读全文
摘要:八月一号的集训二十四号就来了......搬完宿舍之后就戳进实验室了,刚来的几天在耍ACMsteps,刚好回顾一下以前的知识,一回顾才发现以前理解是有多么的浅,比如背包问题,为什么循环那么循环?为什么那样就会求出最大值?没有平时那么多事的干扰,静下心来能思考不少事情,比如01背包为什么就逆向记忆,完全
阅读全文
摘要:NanoApe Loves Sequence Accepts: 531 Submissions: 2481 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others) Time Limit: 2
阅读全文
摘要:Price List Accepts: 880 Submissions: 2184 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/131072 K (Java/Others) Time Limit: 2000/1000 MS
阅读全文
摘要:sum Accepts: 640 Submissions: 1744 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Time Limit: 2000/1000 MS (Java/O
阅读全文
摘要:Travelling Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6600 Accepted Submission(s): 2144 Prob
阅读全文
摘要:Mondriaan's Dream Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 15295 Accepted: 8820 Description Squares and rectangles fascinated the fa
阅读全文
摘要:Necklace Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 327680/327680 K (Java/Others)Total Submission(s): 709 Accepted Submission(s): 245 Proble
阅读全文
摘要:Doing Homework Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3595 Accepted Submission(s): 1424
阅读全文
摘要:Description The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can affo
阅读全文
摘要:Description Alice gets two sequences A and B. A easy problem comes. How many pair of sequence A' and sequence B' are same. For example, {1,2} and {1,2
阅读全文
摘要:Description Alice has a sequence A, She wants to split A into as much as possible continuous subsequences, satisfying that for each subsequence, every
阅读全文
摘要:01背包: for(int I=1;i for(int j=v;j>=cost[i];j--) dp[j]=max(d[j],dp[I-cost[i]]+weight[I]); 为什么要从后往前循环!!!! 因为吧,从后往前循环,每次取得状态不会和你之前取得状态重合,这样就符合01背包的要求,每种物
阅读全文