摘要: The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input n 阅读全文
posted @ 2020-05-11 15:39 SteveYu 阅读(259) 评论(1) 推荐(0) 编辑
摘要: Formation is very important when taking a group photo. Given the rules of forming K rows with N people as the following: The number of people in each 阅读全文
posted @ 2020-05-11 14:26 SteveYu 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Given a tree, you are supposed to tell if it is a complete binary tree. Input Specification: Each input file contains one test case. For each case, th 阅读全文
posted @ 2020-05-11 13:26 SteveYu 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Input our current position and a destination, an online map can recommend several paths. Now your job is to recommend two paths to your user: one is t 阅读全文
posted @ 2020-05-11 12:58 SteveYu 阅读(168) 评论(0) 推荐(0) 编辑