摘要:
C题 Problem C Game Map 思路: 之前暴力搜索写了好几发,一直超时,后面看其他人的题解发现要用记忆化搜索。。直接暴力搜的话有太多重 复的计算。 dist u 表示以u 为起点所能走的最长路径,通过dfs不断递归能获得以u为起点的最长路径,这条路径上的每个点 的dist必定是最大的( 阅读全文
摘要:
A. Alex and broken contest time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output One day Alex 阅读全文
摘要:
A. Modular Exponentiation time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output The following p 阅读全文
摘要:
A. Nearest Minimums time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given an arr 阅读全文
摘要:
Just a Hook Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 36705 Accepted Submission(s): 17920 P 阅读全文
摘要:
C. Cheap Kangaroo time limit per test 1.0 s memory limit per test 256 MB input standard input output standard output There are N kangaroos going out t 阅读全文
摘要:
H. Hit! time limit per test 1.0 s memory limit per test 256 MB input standard input output standard output "Hit!" is a popular game in ancient Bytelan 阅读全文
摘要:
In the age of television, not many people attend theater performances. Antique Comedians of Malidinesia are aware of this fact. They want to propagate 阅读全文
摘要:
昂贵的聘礼 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 51879 Accepted: 15584 Description 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用1000 阅读全文
摘要:
Stockbrokers are known to overreact to rumours. You have been contracted to develop a method of spreading disinformation amongst the stockbrokers to g 阅读全文