03 2016 档案

【POJ2886】Who Gets the Most Candies?-线段树+反素数
摘要:Time Limit: 5000MS Memory Limit: 131072K Case Time Limit: 2000MSDescriptionN children are sitting in a circle to play a game. The childr... 阅读全文

posted @ 2016-03-05 16:55 一骑绝尘去 阅读(202) 评论(0) 推荐(0)

【HDU2255】奔小康赚大钱-KM算法
摘要:Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem Description传说在遥远的地方有一个非常富裕的村落,有一天,村长决定进行制度改革:重新分配房子。 ... 阅读全文

posted @ 2016-03-04 19:54 一骑绝尘去 阅读(213) 评论(0) 推荐(0)

Manthan, Codefest 16 -C. Spy Syndrome 2
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputAfter observing the res... 阅读全文

posted @ 2016-03-03 15:42 一骑绝尘去 阅读(212) 评论(0) 推荐(0)

Topcoder SRM 683 Div2 B
摘要:贪心的题,从左向右推过去即可#include #include #include #include #include #include #include #include #include #include #include #include #include #include #... 阅读全文

posted @ 2016-03-03 15:20 一骑绝尘去 阅读(139) 评论(0) 推荐(0)

Topcoder SRM 683 Div2 - C
摘要:树形Dp的题,根据题意建树。DP[i][0] 表示以i为根节点的树的包含i的时候的所有状态点数的总和Dp[i][1] 表示包含i结点的状态数目对于一个子节点vDp[i][0] = (Dp[v][1]+1)*Dp[i][0]+Dp[v][0]*Dp[i][1]表示子节点的所有状态与i... 阅读全文

posted @ 2016-03-03 15:18 一骑绝尘去 阅读(214) 评论(0) 推荐(0)

Manthan, Codefest 16 -B. A Trivial Problem
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputMr. Santa asks all the ... 阅读全文

posted @ 2016-03-02 20:53 一骑绝尘去 阅读(304) 评论(0) 推荐(0)

Manthan, Codefest 16 -A Ebony and Ivory
摘要:time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputDante is engaged in a f... 阅读全文

posted @ 2016-03-02 20:48 一骑绝尘去 阅读(292) 评论(0) 推荐(0)