欢迎访问我的个人网站==》 jiashubing.cn
摘要: CALCULATOR CONUNDRUMAlice got a hold of an old calculator that can displayndigits. She was bored enough to come up with the following time waster.She enters a numberkthen repeatedly squares it until the result overflows. When the result overflows, only thenmostsignificant digits are displayed on the 阅读全文
posted @ 2013-07-20 19:02 贾树丙 阅读(660) 评论(2) 推荐(1) 编辑
摘要: Open Credit SystemIn an open credit system, the students can choose any course they like, but there is a problem. Some of the students are more senior than other students. The professor of such a course has found quite a number of such students who came from senior classes (as if they came to attend 阅读全文
posted @ 2013-07-20 18:49 贾树丙 阅读(347) 评论(1) 推荐(1) 编辑
摘要: Age SortYou are given the ages (in years) of all people of a country with at least 1 year of age. You know that no individual in that country lives for 100 or more years. Now, you are given a very simple task of sorting all the ages in ascending order.InputThere are multiple test cases in the input 阅读全文
posted @ 2013-07-20 18:12 贾树丙 阅读(512) 评论(1) 推荐(0) 编辑
摘要: NetworkConsider a tree network withnnodes where the internal nodes correspond to servers and the terminal nodes correspond to clients. The nodes are numbered from 1 ton. Among the servers, there is an original serverSwhich provides VOD (Video On Demand) service. To ensure the quality of service for 阅读全文
posted @ 2013-07-20 18:05 贾树丙 阅读(536) 评论(1) 推荐(0) 编辑
摘要: Help is needed for DexterTime Limit: 3 SecondDexter is tired of Dee Dee. So he decided to keep Dee Dee busy in a game. The game he planned for her is quite easy to play but not easy to win at least not for Dee Dee. But Dexter does not have time to spend on this silly task, so he wants your help.Ther 阅读全文
posted @ 2013-07-20 15:25 贾树丙 阅读(422) 评论(1) 推荐(0) 编辑