摘要:
Color the ballTime Limit: 9000/3000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7540Accepted Submission(s): 3887Prob... 阅读全文
摘要:
Closest Common AncestorsTime Limit:2000MSMemory Limit:10000KTotal Submissions:14314Accepted:4607DescriptionWrite a program that takes as input a roote... 阅读全文
摘要:
Nearest Common AncestorsTime Limit:1000MSMemory Limit:10000KTotal Submissions:16530Accepted:8839DescriptionA rooted tree is a well-known data structur... 阅读全文
摘要:
How far away ?Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4244Accepted Submission(s): 1617Prob... 阅读全文
摘要:
Fence RepairTime Limit:2000MSMemory Limit:65536KTotal Submissions:23532Accepted:7491DescriptionFarmer John wants to repair a small length of the fence around the pasture. He measures the fence and finds that he needsN(1 ≤N≤ 20,000) planks of wood, each having some integer lengthLi(1 ≤Li≤ 50,000) uni 阅读全文