摘要: A tree structure is very special structure, there is exactly one path connecting each pair of nodes.Now, given a tree structure, which has N nodes(conveniently labeled from 1 to N). And the root of the tree is always labeled with 1. You are to write a program to figure out that, for every node V in 阅读全文
posted @ 2013-10-07 20:48 _log__ 阅读(201) 评论(0) 推荐(0) 编辑
摘要: HUST - 1427Funny Funny GameTime Limit:1000MSMemory Limit:131072KB64bit IO Format:%lld & %llu[Submit] [Go Back] [Status]DescriptionSuper Hanhan(SH) loves playing all kinds of little games very much. Today rocket323 recommends a new game to SH.The game’s name is “Eating stones”, and it’s played li 阅读全文
posted @ 2013-10-07 20:40 _log__ 阅读(220) 评论(0) 推荐(0) 编辑